staging: vt6655: device_main: Replace NULL comparison with !x
authorNamrata A Shettar <namrataashettar@gmail.com>
Sun, 18 Sep 2016 09:04:51 +0000 (14:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Sep 2016 10:41:48 +0000 (12:41 +0200)
Replace NULL comparison to resolve checkpatch issue.
- x == NULL => !x

Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index aea4179..f109eea 100644 (file)
@@ -477,7 +477,7 @@ static bool device_init_rings(struct vnt_private *priv)
                                             CB_MAX_BUF_SIZE,
                                             &priv->tx_bufs_dma0,
                                             GFP_ATOMIC);
-       if (priv->tx0_bufs == NULL) {
+       if (!priv->tx0_bufs) {
                dev_err(&priv->pcid->dev, "allocate buf dma memory failed\n");
 
                dma_free_coherent(&priv->pcid->dev,