]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit088ce8ad96d3bd23891ecb4796101c268341bea4
tree214226a28ed5f9a1658759f690d17f9e8bd89732
parentfe71f5708a7bf2f604fb8e316a5ac4df78da7099
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