diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-01 16:52:21 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-07-15 13:39:58 +0300 |
commit | ddfa943f246a668ed68e8dc688acf17c4540062a (patch) | |
tree | 139f8a547fc2bd6e478523a1d691b8e2bf4c91ac /drivers/net/wireless/intel/iwlegacy | |
parent | 77b4ad07699fba9f899b4f4fa17c62326e54e8bc (diff) | |
download | linux-ddfa943f246a668ed68e8dc688acf17c4540062a.tar.xz |
iwlegacy: remove redundant initialization of variable tid
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
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy')
-rw-r--r-- | drivers/net/wireless/intel/iwlegacy/4965-rs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/4965-rs.c b/drivers/net/wireless/intel/iwlegacy/4965-rs.c index 0a02d8aca320..1f196665d21f 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-rs.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-rs.c @@ -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"); |