]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: device_main: Replace explicit NULL comparison
authorNamrata A Shettar <namrataashettar@gmail.com>
Sun, 18 Sep 2016 09:05:13 +0000 (14:35 +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 ed12b5c7fe4348145e326951888cad361153dc60..aea4179dd2d44026b779ca563f78235c460b819b 100644 (file)
@@ -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 =