Commit 889cdff7 authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 66ded1f8
...@@ -3539,9 +3539,6 @@ static int ipw_load(struct ipw_priv *priv) ...@@ -3539,9 +3539,6 @@ static int ipw_load(struct ipw_priv *priv)
fw_img = &fw->data[le32_to_cpu(fw->boot_size) + fw_img = &fw->data[le32_to_cpu(fw->boot_size) +
le32_to_cpu(fw->ucode_size)]; le32_to_cpu(fw->ucode_size)];
if (rc < 0)
goto error;
if (!priv->rxq) if (!priv->rxq)
priv->rxq = ipw_rx_queue_alloc(priv); priv->rxq = ipw_rx_queue_alloc(priv);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment