]> git.baikalelectronics.ru Git - kernel.git/commit
brcm80211: Delete an unnecessary check before the function call "release_firmware"
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 6 Nov 2015 07:48:23 +0000 (08:48 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 26 Nov 2015 12:03:19 +0000 (14:03 +0200)
commit0d0ecc47f42cc46d67426a81344ac607fdbe1ca9
tree060cb8542a292dfcd5373a07cbee7c764e34b7e7
parentff927dabf2ce98ad5e03b51d85ee724ca684148f
brcm80211: Delete an unnecessary check before the function call "release_firmware"

The release_firmware() 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>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c