aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/switch.c')
-rw-r--r--net/dsa/switch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/dsa/switch.c b/net/dsa/switch.c
index c1e4b2d5a3ae..d8e5c311ee7c 100644
--- a/net/dsa/switch.c
+++ b/net/dsa/switch.c
@@ -37,10 +37,6 @@ static int dsa_switch_ageing_time(struct dsa_switch *ds,
37 unsigned int ageing_time = info->ageing_time; 37 unsigned int ageing_time = info->ageing_time;
38 struct switchdev_trans *trans = info->trans; 38 struct switchdev_trans *trans = info->trans;
39 39
40 /* Do not care yet about other switch chips of the fabric */
41 if (ds->index != info->sw_index)
42 return 0;
43
44 if (switchdev_trans_ph_prepare(trans)) { 40 if (switchdev_trans_ph_prepare(trans)) {
45 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) 41 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min)
46 return -ERANGE; 42 return -ERANGE;