Commit 8cf50934 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman
Browse files

staging: wfx: drop useless loop



It is guarantee that the loop will stop at first iteration. So drop the
loop.

Fixes: 6bf418c5 ("staging: wfx: change the way to choose frame to send")
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200529121603.1050891-2-Jerome.Pouiller@silabs.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a962053
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -291,8 +291,6 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)

	if (atomic_read(&wdev->tx_lock))
		return NULL;

	for (;;) {
	skb = wfx_tx_queues_get_skb(wdev);
	if (!skb)
		return NULL;
@@ -302,4 +300,3 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
	tx_priv->xmit_timestamp = ktime_get();
	return (struct hif_msg *)skb->data;
}
}