diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-12-31 13:39:11 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-01-02 19:49:24 -0500 |
commit | df2f65de4b2d535c5b8e905768dd5fff1bfca445 (patch) | |
tree | 4c75b4381113728eaa940eab4d1faea419d6d8f5 /net/ieee802154 | |
parent | 78f821b648267d3ee1a63093cd0c41cc99b97727 (diff) |
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 <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/af_ieee802154.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
560 | amount = 0; | 560 | amount = 0; |
561 | spin_lock_bh(&sk->sk_receive_queue.lock); | 561 | spin_lock_bh(&sk->sk_receive_queue.lock); |
562 | skb = skb_peek(&sk->sk_receive_queue); | 562 | skb = skb_peek(&sk->sk_receive_queue); |
563 | if (skb != NULL) { | 563 | if (skb) { |
564 | /* We will only return the amount | 564 | /* We will only return the amount |
565 | * of this packet since that is all | 565 | * of this packet since that is all |
566 | * that will be read. | 566 | * that will be read. |