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>
This commit is contained in:
Chen Ni 2025-04-10 15:34:56 +08:00 committed by Luiz Augusto von Dentz
parent ee3e4209e6
commit bd3cb3c5ae

View File

@ -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;
}