rtlwifi: Delete unnecessary checks before the function call "kfree_skb"
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 16 Nov 2015 12:12:25 +0000 (13:12 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 26 Nov 2015 12:55:27 +0000 (14:55 +0200)
commit073d72f963c987bc79fb1efd61ce53b919e2de27
tree982be0f0f4a983c3bbbff09cfecd6a02de28fb8a
parent6866a64a0f9bba5145891ec0fe5cd52c73efd4e9
rtlwifi: 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: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/core.c
drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c