Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Colin Ian King and committed by
Kalle Valo
9db485ce f7333fc2

-6
-6
drivers/net/wireless/intel/iwlegacy/3945-mac.c
··· 1202 1202 D_RX("r = %d, i = %d\n", r, i); 1203 1203 1204 1204 while (i != r) { 1205 - int len; 1206 - 1207 1205 rxb = rxq->queue[i]; 1208 1206 1209 1207 /* If an RXB doesn't have a Rx queue slot associated with it, ··· 1215 1217 PAGE_SIZE << il->hw_params.rx_page_order, 1216 1218 DMA_FROM_DEVICE); 1217 1219 pkt = rxb_addr(rxb); 1218 - 1219 - len = le32_to_cpu(pkt->len_n_flags) & IL_RX_FRAME_SIZE_MSK; 1220 - len += sizeof(u32); /* account for status word */ 1221 - 1222 1220 reclaim = il_need_reclaim(il, pkt); 1223 1221 1224 1222 /* Based on type of command response or notification,