projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee3e420
)
Bluetooth: hci_uart: Remove unnecessary NULL check before release_firmware()
author
Chen Ni
<nichen@iscas.ac.cn>
Thu, 10 Apr 2025 07:34:56 +0000
(15:34 +0800)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Wed, 21 May 2025 14:27:51 +0000
(10:27 -0400)
release_firmware() checks for NULL pointers internally.
Remove unneeded NULL check for fmw here.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_aml.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bluetooth/hci_aml.c
b/drivers/bluetooth/hci_aml.c
index dc9541e76d8199fdc84eb88d92fe0259e2a5de72..1394c575aa6d44006e4c771e3653b62447b8c382 100644
(file)
--- a/
drivers/bluetooth/hci_aml.c
+++ b/
drivers/bluetooth/hci_aml.c
@@
-313,8
+313,7
@@
static int aml_download_firmware(struct hci_dev *hdev, const char *fw_name)
goto exit;
exit:
- if (firmware)
- release_firmware(firmware);
+ release_firmware(firmware);
return ret;
}