macvlan: Use 'hash' iterators to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 25 Apr 2021 16:14:10 +0000 (18:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2021 21:03:11 +0000 (14:03 -0700)
commitbb23ffa1015cb57e0c9ec3c6135275b38d66a780
tree214226a28ed5f9a1658759f690d17f9e8bd89732
parent99014088156cd78867d19514a0bc771c4b86b93b
macvlan: Use 'hash' iterators to simplify code

Use 'hash_for_each_rcu' and 'hash_for_each_safe' instead of hand writing
them. This saves some lines of code, reduce indentation and improve
readability.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c