iwlegacy: remove redundant initialization of variable tid
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Jul 2020 13:52:21 +0000 (14:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Jul 2020 10:39:58 +0000 (13:39 +0300)
The variable tid is being initialized with a value that is never read
and it is being updated later with a new value.  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>
Link: https://lore.kernel.org/r/20200701135221.549700-1-colin.king@canonical.com
drivers/net/wireless/intel/iwlegacy/4965-rs.c

index 0a02d8a..1f19666 100644 (file)
@@ -1749,7 +1749,7 @@ il4965_rs_rate_scale_perform(struct il_priv *il, struct sk_buff *skb,
        u8 done_search = 0;
        u16 high_low;
        s32 sr;
-       u8 tid = MAX_TID_COUNT;
+       u8 tid;
        struct il_tid_data *tid_data;
 
        D_RATE("rate scale calculate new rate for skb\n");