net: mscc: ocelot: use list_add_tail in ocelot_vcap_filter_add_to_block()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 3 May 2022 12:01:46 +0000 (15:01 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 May 2022 03:42:14 +0000 (20:42 -0700)
commit0a448bba50090a6147c144f452f49301025111ec
treecbd49a8f2e2c6f08be38d7ed1613b7e79bcf0287
parentfa728505f3e7dd1089beed7d0ac40267d5b22dce
net: mscc: ocelot: use list_add_tail in ocelot_vcap_filter_add_to_block()

list_add(..., pos->prev) and list_add_tail(..., pos) are equivalent, use
the later form to unify with the case where the list is empty later.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_vcap.c