From: Sandhya Bankar Date: Sun, 18 Sep 2016 00:08:34 +0000 (+0530) Subject: Staging: i4l: Use !x instead of x == NULL. X-Git-Tag: v5.15~12752^2~314 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b4a3e05c426b02b9728a0ab2bbfd20ad3294a71;p=platform%2Fkernel%2Flinux-starfive.git Staging: i4l: Use !x instead of x == NULL. Use !x instead of x == NULL. This issue was found by checkpatch. Signed-off-by: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/i4l/act2000/capi.c b/drivers/staging/i4l/act2000/capi.c index bf04e6f..62f5629 100644 --- a/drivers/staging/i4l/act2000/capi.c +++ b/drivers/staging/i4l/act2000/capi.c @@ -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;