staging: r8188eu: simplify dequeue_one_xmitframe
authorMartin Kaiser <martin@kaiser.cx>
Mon, 23 Jan 2023 20:53:30 +0000 (21:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jan 2023 09:10:36 +0000 (10:10 +0100)
commit8d97399bebe8de645489f5ec941b271ae9fe4d31
treeaa18c63759c7f7093e4b046d07d8f0d6ea95192a
parentd5986148e802d1704720202b1e1c94d69c936ebd
staging: r8188eu: simplify dequeue_one_xmitframe

Revert the if condition and exit immediately if the list of xmitframes
is empty. Hopefully, this makes the code a little bit simpler.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230123205342.229589-12-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c