diff options
author | Sandhya Bankar <bankarsandhya512@gmail.com> | 2016-09-18 05:38:34 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-20 13:46:31 +0200 |
commit | 4b4a3e05c426b02b9728a0ab2bbfd20ad3294a71 (patch) | |
tree | 69f053e416e0adb270aa7904d6c03cf01d5a5f2a | |
parent | dfe996f275956b9039d49a6545684c739a39cab1 (diff) | |
download | linux-4b4a3e05c426b02b9728a0ab2bbfd20ad3294a71.tar.bz2 |
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 <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/i4l/act2000/capi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/i4l/act2000/capi.c b/drivers/staging/i4l/act2000/capi.c index bf04e6ffebad..62f56294853c 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; |