projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f821b
)
ieee802154: socket: fix checkpatch issue
author
Alexander Aring
<alex.aring@gmail.com>
Wed, 31 Dec 2014 18:39:11 +0000
(19:39 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 3 Jan 2015 00:49:24 +0000
(
01:49
+0100)
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>
net/ieee802154/af_ieee802154.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ieee802154/af_ieee802154.c
b/net/ieee802154/af_ieee802154.c
index 64beb0b3c56056663b649058dbea70e8c466ecf1..2878d8ca6d3bf12c8cb0c382b3e9db68911510f8 100644
(file)
--- 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.