]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Delete unnecessary checks before the function call "kfree_skb"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 15 Nov 2015 07:04:43 +0000 (08:04 +0100)
committerAntonio Quartulli <a@unstable.cc>
Sat, 9 Jan 2016 12:56:00 +0000 (20:56 +0800)
commit2515a35935231b304b8172014ac52ad47c26a3ae
treef4e271b61ae47e0b9ba8d238abcd5e57d300eb22
parent50c0c2e497dd5eecf3b9aa05aa5b27314b70709d
batman-adv: Delete unnecessary checks 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 calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/main.c
net/batman-adv/network-coding.c
net/batman-adv/send.c