Skip to content

Commit

Permalink
wireless, mwifiex: drop redundant NULL test before call to release_fi…
Browse files Browse the repository at this point in the history
…rmware()

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>
  • Loading branch information
Jesper Juhl authored and John W. Linville committed Apr 12, 2012
1 parent a7b957a commit 4fb25c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/mwifiex/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fb25c5

Please sign in to comment.