Skip to content

Commit

Permalink
bna: remove redundant NULL test before release_firmware()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Jiri Kosina committed Apr 30, 2012
1 parent e3c5530 commit 294ca86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/brocade/bna/bnad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 294ca86

Please sign in to comment.