Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1647477
| From | Marko Stankovic <dartnorris@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] staging: vt6655: replace NULL comparison with '!' operator |
| Date | 2017-05-23 01:30 +0200 |
| Message-ID | <tK4VX-3CT-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] staging: vt6655: replace NULL comparison with '!' operator Marko Stankovic <dartnorris@gmail.com> - 2017-05-23 01:30 +0200 [PATCH 2/2] staging: vt6655: remove unnecessary blank lines Marko Stankovic <dartnorris@gmail.com> - 2017-05-23 01:30 +0200
csiph-web