From: Alexander Aring Date: Wed, 31 Dec 2014 18:39:11 +0000 (+0100) Subject: ieee802154: socket: fix checkpatch issue X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=df2f65de4b2d535c5b8e905768dd5fff1bfca445;p=linux-beck.git ieee802154: socket: fix checkpatch issue This patch solves the following checkpatch issue: CHECK: Comparison to NULL could be written "skb" + if (skb != NULL) { Signed-off-by: Alexander Aring Signed-off-by: Marcel Holtmann --- diff --git a/net/ieee802154/af_ieee802154.c b/net/ieee802154/af_ieee802154.c index 64beb0b3c560..2878d8ca6d3b 100644 --- a/net/ieee802154/af_ieee802154.c +++ b/net/ieee802154/af_ieee802154.c @@ -560,7 +560,7 @@ static int dgram_ioctl(struct sock *sk, int cmd, unsigned long arg) amount = 0; spin_lock_bh(&sk->sk_receive_queue.lock); skb = skb_peek(&sk->sk_receive_queue); - if (skb != NULL) { + if (skb) { /* We will only return the amount * of this packet since that is all * that will be read.