diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-05-03 15:01:47 +0300 |
---|---|---|
committer | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-05-04 16:33:15 +0300 |
commit | 2bca9733ec8c64e98db2236ca077ebf6b172c7e7 (patch) | |
tree | be5111b6a1f0d9b51aaa57962cd50d44c0aba3b1 /drivers/net/ethernet/mscc | |
parent | 2cdc461ed8f967b1076dea188b0dcd4fc9d186e6 (diff) |
net: mscc: ocelot: add to tail of empty list in ocelot_vcap_filter_add_to_block
This makes no functional difference but helps in minimizing the delta
for a future change.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Diffstat (limited to 'drivers/net/ethernet/mscc')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_vcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_vcap.c b/drivers/net/ethernet/mscc/ocelot_vcap.c index 4fbd1715e35a..67625377f661 100644 --- a/drivers/net/ethernet/mscc/ocelot_vcap.c +++ b/drivers/net/ethernet/mscc/ocelot_vcap.c @@ -1007,7 +1007,7 @@ static int ocelot_vcap_filter_add_to_block(struct ocelot *ocelot, block->count++; if (list_empty(&block->rules)) { - list_add(&filter->list, &block->rules); + list_add_tail(&filter->list, &block->rules); return 0; } |