iwlegacy: 4965: remove redundant initialization of variable tid
Subsystems (4)
PATCH 1/1 iwlegacy: 4965: remove redundant initialization of variable tid
From: Colin Ian King <[email protected]>
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")
--- drivers/net/wireless/intel/iwlegacy/4965-rs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlegacy/4965-rs.c +1 -1
@@ -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" );
Signature · 1 line
2.27.0
Re: [PATCH] iwlegacy: remove redundant initialization of variable tid
Quoted 8 lines · Colin King
From: Colin Ian King <[email protected]>
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 <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
ddfa943f246a iwlegacy: remove redundant initialization of variable tid
Signature · 3 lines
https://patchwork.kernel.org/patch/11636467/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches