summaryrefslogtreecommitdiff
path: root/net/dsa/switch.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2021-07-01 13:01:43 -0700
committerDavid S. Miller <davem@davemloft.net>2021-07-01 13:01:43 -0700
commit39d7101684a74ac478e0b6411bcc68307a7f1c1a (patch)
tree0ad65307473ad9b87e367cc1c6bbf607f84f8508 /net/dsa/switch.c
parent1d11fa231cabeae09a95cb3e4cf1d9dd34e00f08 (diff)
parent5e437416ff66981d8154687cfdf7de50b1d82bfc (diff)
Merge branch 'master' of ../net-next/
Diffstat (limited to 'net/dsa/switch.c')
-rw-r--r--net/dsa/switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/switch.c b/net/dsa/switch.c
index af71b8638098..248455145982 100644
--- a/net/dsa/switch.c
+++ b/net/dsa/switch.c
@@ -427,7 +427,7 @@ static int dsa_switch_lag_join(struct dsa_switch *ds,
info->port, info->lag,
info->info);
- return 0;
+ return -EOPNOTSUPP;
}
static int dsa_switch_lag_leave(struct dsa_switch *ds,
@@ -440,7 +440,7 @@ static int dsa_switch_lag_leave(struct dsa_switch *ds,
return ds->ops->crosschip_lag_leave(ds, info->sw_index,
info->port, info->lag);
- return 0;
+ return -EOPNOTSUPP;
}
static int dsa_switch_mdb_add(struct dsa_switch *ds,