summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2015-11-14 20:22:41 +0100
committerMarcel Holtmann <marcel@holtmann.org>2015-11-19 17:50:32 +0100
commit56f9ebe641d613916d3dce710004d48ab66660fa (patch)
tree73f5f50ab687ba5da7f8ad10f09a83088bab58df /net
parent7df0f73ece45c2e499b416cbc90949e0226eb134 (diff)
downloadlinux-56f9ebe641d613916d3dce710004d48ab66660fa.tar.bz2
mac802154: Delete an unnecessary check before the function call "kfree_skb"
The kfree_skb() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/mac802154/rx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index 42e96729dae6..446e1300383e 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -217,8 +217,7 @@ __ieee802154_rx_handle_packet(struct ieee802154_local *local,
break;
}
- if (skb)
- kfree_skb(skb);
+ kfree_skb(skb);
}
static void