From: Jesper Juhl Date: Mon, 9 Apr 2012 20:51:01 +0000 (+0200) Subject: ipw2200: remove a redundant NULL check before calling release_firmware() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d144f536e38a8e6fcd6e8e4c9035f107be9f7d62;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: John W. Linville --- 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) priv->rxq = NULL; } ipw_tx_queue_free(priv); - if (raw) - release_firmware(raw); + release_firmware(raw); #ifdef CONFIG_PM fw_loaded = 0; raw = NULL;