diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 22:50:53 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 21:06:07 +0200 |
commit | 740330254ebc5780aeefec0c5198f88b962f499e (patch) | |
tree | 0a93ba4356e5289f959db6d1235ada63cc9235d4 /drivers/net/wireless/atmel.c | |
parent | wireless, at76c50x:: Don't needlessly test for NULL before calling release_fi... (diff) | |
download | linux-740330254ebc5780aeefec0c5198f88b962f499e.tar.xz linux-740330254ebc5780aeefec0c5198f88b962f499e.zip |
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 6c87a823f5a9..d07c0301da6a 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); |