diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-11-14 14:22:41 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-11-19 11:50:32 -0500 |
commit | 56f9ebe641d613916d3dce710004d48ab66660fa (patch) | |
tree | 73f5f50ab687ba5da7f8ad10f09a83088bab58df /net/mac802154 | |
parent | 7df0f73ece45c2e499b416cbc90949e0226eb134 (diff) |
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/mac802154')
-rw-r--r-- | net/mac802154/rx.c | 3 |
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, | |||
217 | break; | 217 | break; |
218 | } | 218 | } |
219 | 219 | ||
220 | if (skb) | 220 | kfree_skb(skb); |
221 | kfree_skb(skb); | ||
222 | } | 221 | } |
223 | 222 | ||
224 | static void | 223 | static void |