wifi: iwlegacy: Remove the unused variable len
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 10 Nov 2023 07:36:02 +0000 (15:36 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 14 Nov 2023 10:18:38 +0000 (12:18 +0200)
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 <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7223
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231110073602.16846-1-jiapeng.chong@linux.alibaba.com
drivers/net/wireless/intel/iwlegacy/4965-mac.c

index 69276266ce6f40c8b206160e000e8caaaa6add23..70e420df16438e9b0e361a9f77d9d2359763a05c 100644 (file)
@@ -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,