iwlegacy: Remove the unused variable len
PATCH 1/1 iwlegacy: Remove the unused variable len
Variable len is not effectively used, so delete it.
drivers/net/wireless/intel/iwlegacy/4965-mac.c:4234:7: warning: variable 'len' set but not used.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/net/wireless/intel/iwlegacy/4965-mac.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/wireless/intel/iwlegacy/4965-mac.c +0 -6
@@ -4231,8 +4231,6 @@ il4965_rx_handle(struct il_priv *il) fill_rx =1 ;while (i != r) { -int len; - rxb = rxq->queue[i];/* If an RXB doesn't have a Rx queue slot associated with it,
@@ -4246,10 +4244,6 @@ il4965_rx_handle(struct il_priv *il)PAGE_SIZE << il->hw_params.rx_page_order, DMA_FROM_DEVICE); pkt =rxb_addr (rxb); - - len =le32_to_cpu (pkt->len_n_flags) &IL_RX_FRAME_SIZE_MSK ; - len +=sizeof (u32);/* account for status word */ - reclaim =il_need_reclaim (il, pkt);/* Based on type of command response or notification,
Signature · 1 line
2.20.1.7.g153144c
Quoted 7 lines · Jiapeng Chong
Variable len is not effectively used, so delete it.
drivers/net/wireless/intel/iwlegacy/4965-mac.c:4234:7: warning: variable 'len' set but not used.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Re: wifi: iwlegacy: Remove the unused variable len
In reply to Jiapeng ChongQuoted 8 lines · Jiapeng Chong
Variable len is not effectively used, so delete it.
drivers/net/wireless/intel/iwlegacy/4965-mac.c:4234:7: warning: variable 'len' set but not used.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Patch applied to wireless-next.git, thanks.
af3077af7c07 wifi: iwlegacy: Remove the unused variable len
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches