Skip to contentSkip to conversation

wireless: ipw2200: remove redundant check of rc < 0

PATCH In review Colin King 2 participants 2 messages Feb 27, 2017 – Mar 20, 2017

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 wireless: ipw2200: remove redundant check of rc < 0

From: Colin Ian King <[email protected]>

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")

---
 drivers/net/wireless/intel/ipw2x00/ipw2200.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/net/wireless/intel/ipw2x00/ipw2200.c +0 -3
index 5ef3c5c..bbc579b 100644
@@ -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
Signature · 1 line
2.10.2
#1 lore raw

Re: ipw2200: remove redundant check of rc < 0

Quoted 8 lines · Colin Ian King

From: Colin Ian King <[email protected]>

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")

Patch applied to wireless-drivers-next.git, thanks.

889cdff72b85 ipw2200: remove redundant check of rc < 0

Signature · 6 lines
https://patchwork.kernel.org/patch/9594495/

Documentation about submitting wireless patches and checking status
from patchwork:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches