OSDN Git Service

net: ag71xx: Slightly simplify 'ag71xx_rx_packets()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 4 Apr 2021 06:33:44 +0000 (08:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Apr 2021 18:53:44 +0000 (11:53 -0700)
commit0282bc6ae86d84b035afac792b5d5ff67707cdd2
tree6dd4dc4f3be0d0dfc91b3b16c2136ecd5dd4e97b
parent514e1150da9cd8d7978d990a353636cf1a7a87c2
net: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/ag71xx.c