diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 20:50:24 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-30 11:18:51 (GMT) |
commit | 294ca868ed598519cab1cd699873378d46733198 (patch) | |
tree | b6893d1ebdcf51abd9df1bfc434a320f401a1273 | |
parent | e3c5530b96b9c5994cfb2544a037161790c4f7c3 (diff) | |
download | linux-fsl-qoriq-294ca868ed598519cab1cd699873378d46733198.tar.xz |
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>
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index ff78f77..d86390c 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -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); |