From: Colin Ian King Date: Mon, 27 Feb 2017 23:40:19 +0000 (+0000) Subject: ipw2200: remove redundant check of rc < 0 X-Git-Tag: v4.12-rc1~64^3~211^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=889cdff72b85cc553d7820de071887593690b7d2;p=platform%2Fkernel%2Flinux-exynos.git ipw2200: remove redundant check of rc < 0 The check for rc < 0 is always false so the check is redundant and can be removed. Detected with CoverityScan, CID#101143 ("Logically dead code") Signed-off-by: Colin Ian King Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 5ef3c5c..bbc579b 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -3539,9 +3539,6 @@ static int ipw_load(struct ipw_priv *priv) fw_img = &fw->data[le32_to_cpu(fw->boot_size) + le32_to_cpu(fw->ucode_size)]; - if (rc < 0) - goto error; - if (!priv->rxq) priv->rxq = ipw_rx_queue_alloc(priv); else