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>
This commit is contained in:
parent
c987ce93ad
commit
740330254e
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue