projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b76bbd6
)
Bluetooth: btmrvl_sdio: remove pointless conditional before release_firmware()
author
Jesper Juhl
<jj@chaosbits.net>
Mon, 9 Apr 2012 20:49:49 +0000
(22:49 +0200)
committer
Gustavo Padovan
<gustavo@padovan.org>
Wed, 9 May 2012 04:40:31 +0000
(
01:40
-0300)
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>
drivers/bluetooth/btmrvl_sdio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bluetooth/btmrvl_sdio.c
b/drivers/bluetooth/btmrvl_sdio.c
index 27b74b0d547b540043fd318917e2cb5d6ebe0591..ed62c7f6a553a3eac686d66ed24194bf581c6244 100644
(file)
--- a/
drivers/bluetooth/btmrvl_sdio.c
+++ b/
drivers/bluetooth/btmrvl_sdio.c
@@
-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;
}