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:
Jesper Juhl 2012-04-09 22:50:53 +02:00 committed by John W. Linville
parent c987ce93ad
commit 740330254e

View file

@ -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);