ipw2x00: remove redundant assignment to err
authorColin Ian King <colin.king@canonical.com>
Fri, 26 Jul 2019 10:06:14 +0000 (11:06 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Aug 2019 12:36:51 +0000 (15:36 +0300)
Variable err is initialized to a value that is never read and it
is re-assigned later.  The initialization is redundant and can
be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/ipw2x00/ipw2100.c

index 75c0c29d81f064c89bdbf6c2787c0c911fb62408..8dfbaff2d1fe2a3199ee4cc190c5627c55efe749 100644 (file)
@@ -4413,7 +4413,7 @@ static void ipw2100_kill_works(struct ipw2100_priv *priv)
 
 static int ipw2100_tx_allocate(struct ipw2100_priv *priv)
 {
-       int i, j, err = -EINVAL;
+       int i, j, err;
        void *v;
        dma_addr_t p;