* [PATCH 1/2] staging: vt6655: replace NULL comparison with '!' operator
@ 2017-05-22 23:19 Marko Stankovic
2017-05-22 23:19 ` [PATCH 2/2] staging: vt6655: remove unnecessary blank lines Marko Stankovic
0 siblings, 1 reply; 2+ messages in thread
From: Marko Stankovic @ 2017-05-22 23:19 UTC (permalink / raw)
To: Forest Bond, Greg Kroah-Hartman; +Cc: Marko Stankovic, devel, linux-kernel
Fix comparison to NULL issues reported by checkpatch.pl
Signed-off-by: Marko Stankovic <dartnorris@gmail.com>
---
drivers/staging/vt6655/device_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index da0f71191009..1c652f0ff3ba 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -157,7 +157,7 @@ static void vt6655_remove(struct pci_dev *pcid)
{
struct vnt_private *priv = pci_get_drvdata(pcid);
- if (priv == NULL)
+ if (!priv)
return;
device_free_info(priv);
}
@@ -453,7 +453,7 @@ static bool device_init_rings(struct vnt_private *priv)
priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc) +
priv->opts.tx_descs[1] * sizeof(struct vnt_tx_desc),
&priv->pool_dma, GFP_ATOMIC);
- if (vir_pool == NULL) {
+ if (!vir_pool) {
dev_err(&priv->pcid->dev, "allocate desc dma memory failed\n");
return false;
}
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] staging: vt6655: remove unnecessary blank lines
2017-05-22 23:19 [PATCH 1/2] staging: vt6655: replace NULL comparison with '!' operator Marko Stankovic
@ 2017-05-22 23:19 ` Marko Stankovic
0 siblings, 0 replies; 2+ messages in thread
From: Marko Stankovic @ 2017-05-22 23:19 UTC (permalink / raw)
To: Forest Bond, Greg Kroah-Hartman; +Cc: Marko Stankovic, devel, linux-kernel
Fix unnecessary blank lines issues reported by checkpatch.pl
Signed-off-by: Marko Stankovic <dartnorris@gmail.com>
---
drivers/staging/vt6655/device_main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 1c652f0ff3ba..78804eaec608 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -1018,7 +1018,6 @@ static void vnt_interrupt_process(struct vnt_private *priv)
}
/* TODO: adhoc PS mode */
-
}
if (isr & ISR_BNTX) {
@@ -1702,7 +1701,6 @@ static int vt6655_suspend(struct pci_dev *pcid, pm_message_t state)
static int vt6655_resume(struct pci_dev *pcid)
{
-
pci_set_power_state(pcid, PCI_D0);
pci_enable_wake(pcid, PCI_D0, 0);
pci_restore_state(pcid);
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-22 23:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-22 23:19 [PATCH 1/2] staging: vt6655: replace NULL comparison with '!' operator Marko Stankovic
2017-05-22 23:19 ` [PATCH 2/2] staging: vt6655: remove unnecessary blank lines Marko Stankovic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome