staging: r8188eu: use kernel helper to iterate over a list
authorMartin Kaiser <martin@kaiser.cx>
Mon, 30 Jan 2023 19:52:59 +0000 (20:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 10:16:57 +0000 (11:16 +0100)
commit9cc5265ac8ed52b5d13684dc36947b3d0856add5
tree528b7b82101326092875227aecfd468431a14860
parentf5a894957063918bac8e05850c6e88eae5c93b6e
staging: r8188eu: use kernel helper to iterate over a list

rtw_free_xmitframe_list iterates over the list of xmit_frames and frees
each entry. We can use list_for_each_entry_safe instead of coding this
manually. We need the _safe version as the current pxmitframe will be
removed from the list by rtw_free_xmitframe.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20230130195303.138941-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c