diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 20:51:12 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 19:06:07 (GMT) |
commit | 4fb25c5914e0c79e236a327833af7f581225f790 (patch) | |
tree | 400d16b6ffda24ace1e924c981f640f81d6853aa /drivers | |
parent | a7b957a277215da1830596c0791307a999fe5153 (diff) | |
download | linux-fsl-qoriq-4fb25c5914e0c79e236a327833af7f581225f790.tar.xz |
wireless, mwifiex: drop redundant NULL test before call to release_firmware()
Since release_firmware() does its own test for NULL it is redundant to
do so before calling it.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c index 9d1b3ca..2ee6162 100644 --- a/drivers/net/wireless/mwifiex/main.c +++ b/drivers/net/wireless/mwifiex/main.c @@ -342,8 +342,7 @@ static int mwifiex_init_hw_fw(struct mwifiex_adapter *adapter) ret = 0; done: - if (adapter->firmware) - release_firmware(adapter->firmware); + release_firmware(adapter->firmware); if (ret) ret = -1; return ret; |