Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chen Ni and committed by
Luiz Augusto von Dentz
bd3cb3c5 ee3e4209

+1 -2
+1 -2
drivers/bluetooth/hci_aml.c
··· 313 313 goto exit; 314 314 315 315 exit: 316 - if (firmware) 317 - release_firmware(firmware); 316 + release_firmware(firmware); 318 317 return ret; 319 318 } 320 319