]> git.baikalelectronics.ru Git - kernel.git/commit
net: brcm80211: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 20 Nov 2014 15:42:51 +0000 (16:42 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Nov 2014 21:14:39 +0000 (16:14 -0500)
commit832a7efe24ad974894e497883864240787152af5
tree3d1dfd055a60893235c2611be8be8aa0e620dca9
parent51cc2a8e4d17cb83323814e297a777883ec579f4
net: brcm80211: Deletion of unnecessary checks before two function calls

The functions brcmu_pkt_buf_free_skb() and release_firmware() test whether
their argument is NULL and then return 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>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/firmware.c
drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c
drivers/net/wireless/brcm80211/brcmsmac/main.c