ipw2200: remove redundant check of rc < 0
authorColin Ian King <colin.king@canonical.com>
Mon, 27 Feb 2017 23:40:19 +0000 (23:40 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 20 Mar 2017 17:16:24 +0000 (19:16 +0200)
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 <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/ipw2x00/ipw2200.c

index 5ef3c5cc47c5f75e4aee7c727f4ae08e7225c98f..bbc579b647b61b6aa15b8ed3b7f4455cb8dd404c 100644 (file)
@@ -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