staging: r8188eu: replace hand coded loop with list_for_each_entry
authorMartin Kaiser <martin@kaiser.cx>
Sat, 11 Feb 2023 17:02:23 +0000 (18:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Feb 2023 12:54:41 +0000 (13:54 +0100)
commitc17ffe008463d3a07b633dd0e956f7c1a3a7c347
tree68fe92e6b6f1bdcd0701799f7ff0a67419a7beba
parentda8b09464c59c7c09f7ca880b607b5d8d0cc90fe
staging: r8188eu: replace hand coded loop with list_for_each_entry

In function rtw_get_stainfo, we can use list_for_each_entry to iterate
over the list of stations and make the code a 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/20230211170223.419205-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_sta_mgt.c