aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-04-09 16:51:01 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-12 15:06:07 -0400
commitd144f536e38a8e6fcd6e8e4c9035f107be9f7d62 (patch)
treed48c6aaac3787a5ae44f5c50570fde2a33c52a45 /drivers/net
parent740330254ebc5780aeefec0c5198f88b962f499e (diff)
ipw2200: remove a redundant NULL check before calling release_firmware()
The release_firmware() function does its own NULL test, so testing before calling it is rather redundant. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index 2b022571a859..77c5d2f5115a 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -3657,8 +3657,7 @@ static int ipw_load(struct ipw_priv *priv)
3657 priv->rxq = NULL; 3657 priv->rxq = NULL;
3658 } 3658 }
3659 ipw_tx_queue_free(priv); 3659 ipw_tx_queue_free(priv);
3660 if (raw) 3660 release_firmware(raw);
3661 release_firmware(raw);
3662#ifdef CONFIG_PM 3661#ifdef CONFIG_PM
3663 fw_loaded = 0; 3662 fw_loaded = 0;
3664 raw = NULL; 3663 raw = NULL;