Commit 59f34fb3 authored by Jesper Juhl's avatar Jesper Juhl Committed by Gustavo Padovan

Bluetooth: btmrvl_sdio: remove pointless conditional before release_firmware()

release_firmware() deals gracefullt with NULL pointers so there's no
reason to test for one prior to calling the function.
Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarGustavo Padovan <gustavo@padovan.org>
parent b76bbd66
...@@ -339,9 +339,7 @@ static int btmrvl_sdio_download_helper(struct btmrvl_sdio_card *card) ...@@ -339,9 +339,7 @@ static int btmrvl_sdio_download_helper(struct btmrvl_sdio_card *card)
done: done:
kfree(tmphlprbuf); kfree(tmphlprbuf);
if (fw_helper)
release_firmware(fw_helper); release_firmware(fw_helper);
return ret; return ret;
} }
...@@ -484,10 +482,7 @@ static int btmrvl_sdio_download_fw_w_helper(struct btmrvl_sdio_card *card) ...@@ -484,10 +482,7 @@ static int btmrvl_sdio_download_fw_w_helper(struct btmrvl_sdio_card *card)
done: done:
kfree(tmpfwbuf); kfree(tmpfwbuf);
if (fw_firmware)
release_firmware(fw_firmware); release_firmware(fw_firmware);
return ret; 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