diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-02-28 02:40:19 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-03-20 20:16:24 +0300 |
commit | 889cdff72b85cc553d7820de071887593690b7d2 (patch) | |
tree | 91f4fda43d3d5923de097cc7a1bfcb777f8b2c10 /drivers | |
parent | 66ded1f8b33cdd9d6d3e20f5f8dd23615a110e70 (diff) | |
download | linux-889cdff72b85cc553d7820de071887593690b7d2.tar.xz |
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 <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/intel/ipw2x00/ipw2200.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 5ef3c5cc47c5..bbc579b647b6 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 |