diff options
author | Namrata A Shettar <namrataashettar@gmail.com> | 2016-09-18 14:34:51 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-18 12:41:48 +0200 |
commit | 7cfae24953fa79c69f1bf4edbf44546648de55ba (patch) | |
tree | c6c91d3ad55cae67664dc81b24b960dab60cecce /drivers/staging/vt6655 | |
parent | 8f4166d888cb41b112ea38ceb037ba2f4f156c5b (diff) | |
download | linux-stable-7cfae24953fa79c69f1bf4edbf44546648de55ba.tar.gz linux-stable-7cfae24953fa79c69f1bf4edbf44546648de55ba.tar.bz2 linux-stable-7cfae24953fa79c69f1bf4edbf44546648de55ba.zip |
staging: vt6655: device_main: Replace NULL comparison with !x
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>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r-- | drivers/staging/vt6655/device_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index aea4179dd2d4..f109eeac358d 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -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, |