Skip to contentSkip to conversation

Staging: i4l: Use !x instead of x == NULL.

PATCH New Sandhya Bankar 1 participant 1 message Sep 17, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: i4l: Use !x instead of x == NULL.

Use !x instead of x == NULL.
This issue was found by checkpatch.

---
 drivers/staging/i4l/act2000/capi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/i4l/act2000/capi.c +1 -1
index bf04e6f..62f5629 100755
@@ -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;
Signature · 1 line
1.7.1