Commit 4fb25c59 authored by Jesper Juhl's avatar Jesper Juhl Committed by John W. Linville

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: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a7b957a2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment