Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1589059 > unrolled thread

[PATCH] wireless: ipw2200: remove redundant check of rc < 0

Started byColin King <colin.king@canonical.com>
First post2017-02-28 01:20 +0100
Last post2017-02-28 01:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] wireless: ipw2200: remove redundant check of rc < 0 Colin King <colin.king@canonical.com> - 2017-02-28 01:20 +0100

#1589059 — [PATCH] wireless: ipw2200: remove redundant check of rc < 0

FromColin King <colin.king@canonical.com>
Date2017-02-28 01:20 +0100
Subject[PATCH] wireless: ipw2200: remove redundant check of rc < 0
Message-ID<tfDGh-4RF-1@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/net/wireless/intel/ipw2x00/ipw2200.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
index 5ef3c5c..bbc579b 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
-- 
2.10.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web