We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a96205 commit 8cf5093Copy full SHA for 8cf5093
drivers/staging/wfx/queue.c
@@ -291,15 +291,12 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
291
292
if (atomic_read(&wdev->tx_lock))
293
return NULL;
294
-
295
- for (;;) {
296
- skb = wfx_tx_queues_get_skb(wdev);
297
- if (!skb)
298
- return NULL;
299
- skb_queue_tail(&wdev->tx_pending, skb);
300
- wake_up(&wdev->tx_dequeue);
301
- tx_priv = wfx_skb_tx_priv(skb);
302
- tx_priv->xmit_timestamp = ktime_get();
303
- return (struct hif_msg *)skb->data;
304
- }
+ skb = wfx_tx_queues_get_skb(wdev);
+ if (!skb)
+ return NULL;
+ skb_queue_tail(&wdev->tx_pending, skb);
+ wake_up(&wdev->tx_dequeue);
+ tx_priv = wfx_skb_tx_priv(skb);
+ tx_priv->xmit_timestamp = ktime_get();
+ return (struct hif_msg *)skb->data;
305
}
0 commit comments