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

wifi: mwifiex: remove unused evt_buf variable

clang with W=1 reports
drivers/net/wireless/marvell/mwifiex/11h.c:198:6: error: variable
'evt_buf' set but not used [-Werror,-Wunused-but-set-variable]
u8 *evt_buf;
^
This variable is not used so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230329131444.1809018-1-trix@redhat.com

authored by

Tom Rix and committed by
Kalle Valo
074d0a1a 2f73f04b

-4
-4
drivers/net/wireless/marvell/mwifiex/11h.c
··· 195 195 { 196 196 struct host_cmd_ds_chan_rpt_event *rpt_event; 197 197 struct mwifiex_ie_types_chan_rpt_data *rpt; 198 - u8 *evt_buf; 199 198 u16 event_len, tlv_len; 200 199 201 200 rpt_event = (void *)(skb->data + sizeof(u32)); ··· 206 207 "Error in channel report event\n"); 207 208 return -1; 208 209 } 209 - 210 - evt_buf = (void *)&rpt_event->tlvbuf; 211 210 212 211 while (event_len >= sizeof(struct mwifiex_ie_types_header)) { 213 212 rpt = (void *)&rpt_event->tlvbuf; ··· 228 231 break; 229 232 } 230 233 231 - evt_buf += (tlv_len + sizeof(rpt->header)); 232 234 event_len -= (tlv_len + sizeof(rpt->header)); 233 235 } 234 236