Skip to content

Commit af3077a

Browse files
Jiapeng ChongKalle Valo
authored andcommitted
wifi: 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]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7223 Signed-off-by: Jiapeng Chong <[email protected]> Acked-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 50da74e commit af3077a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/wireless/intel/iwlegacy/4965-mac.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4231,8 +4231,6 @@ il4965_rx_handle(struct il_priv *il)
42314231
fill_rx = 1;
42324232

42334233
while (i != r) {
4234-
int len;
4235-
42364234
rxb = rxq->queue[i];
42374235

42384236
/* If an RXB doesn't have a Rx queue slot associated with it,
@@ -4246,10 +4244,6 @@ il4965_rx_handle(struct il_priv *il)
42464244
PAGE_SIZE << il->hw_params.rx_page_order,
42474245
DMA_FROM_DEVICE);
42484246
pkt = rxb_addr(rxb);
4249-
4250-
len = le32_to_cpu(pkt->len_n_flags) & IL_RX_FRAME_SIZE_MSK;
4251-
len += sizeof(u32); /* account for status word */
4252-
42534247
reclaim = il_need_reclaim(il, pkt);
42544248

42554249
/* Based on type of command response or notification,

0 commit comments

Comments
 (0)