wireless: ipw2200: remove redundant check of rc < 0
Subsystems (4)
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")
Signed-off-by Colin Ian King <[email protected]>
--- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/wireless/intel/ipw2x00/ipw2200.c +0 -3
@@ -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
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")
Signed-off-by Colin Ian King <[email protected]>
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