aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2025-04-10 15:34:56 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2025-05-21 10:27:51 -0400
commitbd3cb3c5aec80f70762c34fdd3068f07b212108e (patch)
treef26a96f90c488158346a242aa0b06ef50dca78f8 /drivers/bluetooth
parentBluetooth: btmtksdio: Fix wakeup source leaks on device unbind (diff)
downloadlinux-rng-bd3cb3c5aec80f70762c34fdd3068f07b212108e.tar.xz
linux-rng-bd3cb3c5aec80f70762c34fdd3068f07b212108e.zip
Bluetooth: hci_uart: Remove unnecessary NULL check before release_firmware()
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_aml.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_aml.c b/drivers/bluetooth/hci_aml.c
index dc9541e76d81..1394c575aa6d 100644
--- 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;
}