diff options
author | Namrata A Shettar <namrataashettar@gmail.com> | 2016-09-18 14:35:13 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-18 12:41:48 +0200 |
commit | 8f4166d888cb41b112ea38ceb037ba2f4f156c5b (patch) | |
tree | 35497f04e2511360b1594f98a301a05a33916657 /drivers/staging/vt6655 | |
parent | c9573a8d1963ba82f163c4d113266da82c048c21 (diff) | |
download | linux-stable-8f4166d888cb41b112ea38ceb037ba2f4f156c5b.tar.gz linux-stable-8f4166d888cb41b112ea38ceb037ba2f4f156c5b.tar.bz2 linux-stable-8f4166d888cb41b112ea38ceb037ba2f4f156c5b.zip |
staging: vt6655: device_main: Replace explicit NULL comparison
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 ed12b5c7fe43..aea4179dd2d4 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -735,7 +735,7 @@ static bool device_alloc_rx_buf(struct vnt_private *priv, struct vnt_rd_info *rd_info = rd->rd_info; rd_info->skb = dev_alloc_skb((int)priv->rx_buf_sz); - if (rd_info->skb == NULL) + if (!rd_info->skb) return false; rd_info->skb_dma = |