diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-11-04 13:50:36 +0000 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-11-08 09:40:18 +0200 |
commit | 9db485ce098fda396151253b34c5aa6a4fbf6c1b (patch) | |
tree | 238d9c18cecce875ec098c77e169f98c1b0aa4c8 | |
parent | f7333fc2135b96dc36965a8e711a9275432256df (diff) |
wifi: iwlegacy: remove redundant variable len
Variable len is being assigned and modified but it is never
used. The variable is redundant and can be removed.
Cleans up clang scan build warning:
warning: variable 'len' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221104135036.225628-1-colin.i.king@gmail.com
-rw-r--r-- | drivers/net/wireless/intel/iwlegacy/3945-mac.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/3945-mac.c b/drivers/net/wireless/intel/iwlegacy/3945-mac.c index c4503308f3b0..d7e99d50b287 100644 --- a/drivers/net/wireless/intel/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/3945-mac.c @@ -1202,8 +1202,6 @@ il3945_rx_handle(struct il_priv *il) D_RX("r = %d, i = %d\n", r, i); while (i != r) { - int len; - rxb = rxq->queue[i]; /* If an RXB doesn't have a Rx queue slot associated with it, @@ -1217,10 +1215,6 @@ il3945_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, |