diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 20:50:53 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 19:06:07 (GMT) |
commit | 740330254ebc5780aeefec0c5198f88b962f499e (patch) | |
tree | 0a93ba4356e5289f959db6d1235ada63cc9235d4 /drivers/net/wireless/atmel.c | |
parent | c987ce93ad7f96ca637d1f866ff22cfcbfe99d47 (diff) | |
download | linux-740330254ebc5780aeefec0c5198f88b962f499e.tar.xz |
wireless, atmel: remove pointless test for NULL before release_firmware() call
release_firmware() does its own test. Explicitly checking before the
call is redundant.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/atmel.c')
-rw-r--r-- | drivers/net/wireless/atmel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c index 6c87a82..d07c030 100644 --- a/drivers/net/wireless/atmel.c +++ b/drivers/net/wireless/atmel.c @@ -3989,8 +3989,7 @@ static int reset_atmel_card(struct net_device *dev) atmel_copy_to_card(priv->dev, 0x8000, &fw[0x6000], len - 0x6000); } - if (fw_entry) - release_firmware(fw_entry); + release_firmware(fw_entry); } err = atmel_wakeup_firmware(priv); |