diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 22:50:10 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-30 13:16:45 +0200 |
commit | b2cbf2e31bd26abaddcb1ce4cefb09e025247d52 (patch) | |
tree | 8d943e004fb6b7ea33a41bf585b551545cb87564 /drivers/net/ethernet/3com | |
parent | c69a6ca1a4e398e7e85cab792ddbd874d9335233 (diff) | |
download | linux-b2cbf2e31bd26abaddcb1ce4cefb09e025247d52.tar.gz linux-b2cbf2e31bd26abaddcb1ce4cefb09e025247d52.tar.xz |
typhoon: get rid of redundant conditional before all to release_firmware()
There's no need to test for a NULL pointer before calling
release_firmware() since the function does that check itself, so
remove the redundant test.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: David Dillow <dave@thedillows.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/net/ethernet/3com')
-rw-r--r-- | drivers/net/ethernet/3com/typhoon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c index 1234a14b2b73..b15366635147 100644 --- a/drivers/net/ethernet/3com/typhoon.c +++ b/drivers/net/ethernet/3com/typhoon.c @@ -2549,8 +2549,7 @@ typhoon_init(void) static void __exit typhoon_cleanup(void) { - if (typhoon_fw) - release_firmware(typhoon_fw); + release_firmware(typhoon_fw); pci_unregister_driver(&typhoon_driver); } |