bna: remove redundant NULL test before release_firmware()
authorJesper Juhl <jj@chaosbits.net>
Mon, 9 Apr 2012 20:50:24 +0000 (22:50 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 30 Apr 2012 11:18:51 +0000 (13:18 +0200)
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>
drivers/net/ethernet/brocade/bna/bnad.c

index ff78f770dec91e12e9a816c413b768d31481acd4..d86390cc033ea8d4baa4aad56a3925808a7e213e 100644 (file)
@@ -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);