From: Jesper Juhl Date: Mon, 9 Apr 2012 20:50:53 +0000 (+0200) Subject: wireless, atmel: remove pointless test for NULL before release_firmware() call X-Git-Tag: v3.5-rc1~109^2~410^2~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=740330254ebc5780aeefec0c5198f88b962f499e;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: John W. Linville --- 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);