forked from Minki/linux
bna: remove redundant NULL test before release_firmware()
release_firmware() does its own NULL test so explicit test before call is unneeded. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Rasesh Mody <rmody@brocade.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
e3c5530b96
commit
294ca868ed
@ -3546,9 +3546,7 @@ static void __exit
|
||||
bnad_module_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&bnad_pci_driver);
|
||||
|
||||
if (bfi_fw)
|
||||
release_firmware(bfi_fw);
|
||||
release_firmware(bfi_fw);
|
||||
}
|
||||
|
||||
module_init(bnad_module_init);
|
||||
|
Loading…
Reference in New Issue
Block a user