mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
This commit is contained in:
parent
b76bbd6657
commit
59f34fb335
@ -339,9 +339,7 @@ static int btmrvl_sdio_download_helper(struct btmrvl_sdio_card *card)
|
||||
|
||||
done:
|
||||
kfree(tmphlprbuf);
|
||||
if (fw_helper)
|
||||
release_firmware(fw_helper);
|
||||
|
||||
release_firmware(fw_helper);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -484,10 +482,7 @@ static int btmrvl_sdio_download_fw_w_helper(struct btmrvl_sdio_card *card)
|
||||
|
||||
done:
|
||||
kfree(tmpfwbuf);
|
||||
|
||||
if (fw_firmware)
|
||||
release_firmware(fw_firmware);
|
||||
|
||||
release_firmware(fw_firmware);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user