net: mscc: ocelot: use list_for_each_entry in ocelot_vcap_block_remove_filter
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 3 Mar 2022 14:01:20 +0000 (16:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 09:21:23 +0000 (09:21 +0000)
commitc5a0edaeb9e1eb6dc5fcaf4e33bdaa1701bd41fb
treed36ffb343a10b52f9162811a52620af8538f4da4
parentf9f52c3474282a5485b28cf188b47d6e2efee185
net: mscc: ocelot: use list_for_each_entry in ocelot_vcap_block_remove_filter

Simplify ocelot_vcap_block_remove_filter by using list_for_each_entry
instead of list_for_each.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_vcap.c