Skip to content

Commit

Permalink
Bluetooth: btmrvl_sdio: remove pointless conditional before release_f…
Browse files Browse the repository at this point in the history
…irmware()

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 <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
  • Loading branch information
jjuhl authored and padovan committed May 9, 2012
1 parent b76bbd6 commit 59f34fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/bluetooth/btmrvl_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 59f34fb

Please sign in to comment.