From: Vladimir Oltean Date: Tue, 3 May 2022 12:01:47 +0000 (+0300) Subject: net: mscc: ocelot: add to tail of empty list in ocelot_vcap_filter_add_to_block X-Git-Tag: v5.19-rc1~159^2~186^2~3 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3825a0d02748b4eb355b1d3926ff750fd3846178;p=tomoyo%2Ftomoyo-test1.git 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 Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/mscc/ocelot_vcap.c b/drivers/net/ethernet/mscc/ocelot_vcap.c index 5b6f22bd0e5f..4d8ce4b425b2 100644 --- a/drivers/net/ethernet/mscc/ocelot_vcap.c +++ b/drivers/net/ethernet/mscc/ocelot_vcap.c @@ -1004,7 +1004,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; }