From: Alexander Sverdlin At this point the queues of all interfaces have already been collected and sorted into queues[], and the search over them doesn't use wvif. The surrounding loop over the interfaces merely repeats the same search once per interface. Drop it. The loop came with commit f7385a20249e ("wifi: wfx: allow to send frames during ROC"), apparently modelled on the cab queue search below, which does need the interface. No functional change. Signed-off-by: Alexander Sverdlin --- drivers/net/wireless/silabs/wfx/queue.c | 27 +++++++++++-------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/net/wireless/silabs/wfx/queue.c b/drivers/net/wireless/silabs/wfx/queue.c index e61b86f211e53..6471564345a86 100644 --- a/drivers/net/wireless/silabs/wfx/queue.c +++ b/drivers/net/wireless/silabs/wfx/queue.c @@ -250,21 +250,18 @@ static struct sk_buff *wfx_tx_queues_get_skb(struct wfx_dev *wdev) } } - wvif = NULL; - while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { - for (i = 0; i < num_queues; i++) { - skb = skb_dequeue(&queues[i]->offchan); - if (!skb) - continue; - hif = (struct wfx_hif_msg *)skb->data; - /* Offchan frames are assigned to a special interface. - * The only interface allowed to send data during scan. - */ - WARN_ON(hif->interface != 2); - atomic_inc(&queues[i]->pending_frames); - trace_queues_stats(wdev, queues[i]); - return skb; - } + for (i = 0; i < num_queues; i++) { + skb = skb_dequeue(&queues[i]->offchan); + if (!skb) + continue; + hif = (struct wfx_hif_msg *)skb->data; + /* Offchan frames are assigned to a special interface. + * The only interface allowed to send data during scan. + */ + WARN_ON(hif->interface != 2); + atomic_inc(&queues[i]->pending_frames); + trace_queues_stats(wdev, queues[i]); + return skb; } if (mutex_is_locked(&wdev->scan_lock)) base-commit: 24630ff92eff08500ec4772728d4b1fa08c28f47 -- 2.56.1