ag71xx: Slightly simplify 'ag71xx_rx_packets()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 13 Mar 2024 22:39:23 +0000 (15:39 -0700)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 14 May 2024 10:21:02 +0000 (12:21 +0200)
commit5ac8cf1eab606129fdf9588501ac134a2b548ea5
tree23bfff67034735650c678167f0a449b16acc24ab
parenteb1b0220439262d6fff2a2e2180b87db27390905
ag71xx: Slightly simplify 'ag71xx_rx_packets()'

There is no need to use 'list_for_each_entry_safe' here, as nothing is
removed from the list in the 'for' loop.
Use 'list_for_each_entry' instead, it is slightly less verbose.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://github.com/openwrt/openwrt/pull/15435
Link: https://github.com/openwrt/openwrt/pull/15435
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c