Staging: i4l: Use !x instead of x == NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sun, 18 Sep 2016 00:08:34 +0000 (05:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:46:31 +0000 (13:46 +0200)
Use !x instead of x == NULL. This issue was found by checkpatch.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/i4l/act2000/capi.c

index bf04e6f..62f5629 100644 (file)
@@ -618,7 +618,7 @@ handle_ack(act2000_card *card, act2000_chan *chan, __u8 blocknr) {
                spin_lock_irqsave(&card->lock, flags);
                tmp = skb_peek((struct sk_buff_head *)tmp);
                spin_unlock_irqrestore(&card->lock, flags);
-               if ((tmp == skb) || (tmp == NULL)) {
+               if ((tmp == skb) || !tmp) {
                        /* reached end of queue */
                        printk(KERN_WARNING "act2000: handle_ack nothing found!\n");
                        return 0;