summaryrefslogtreecommitdiff
path: root/net/dsa
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@gmail.com>2019-10-31 05:09:18 +0300
committerDavid S. Miller <davem@davemloft.net>2019-11-01 00:26:38 +0300
commit27d4d19d7c82b3fd9d09ac9e2cd73c70ed4ca4b2 (patch)
tree83b45a22a9aca0efdb78581c446aded139faa62f /net/dsa
parent8e5cb84c67e085ad4d8005dcecba3201f2b54504 (diff)
downloadlinux-27d4d19d7c82b3fd9d09ac9e2cd73c70ed4ca4b2.tar.xz
net: dsa: remove limitation of switch index value
Because there is no static array describing the links between switches anymore, we have no reason to force a limitation of the index value set by the device tree. Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/dsa2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
index 371f15042dad..ff2fa3950c62 100644
--- a/net/dsa/dsa2.c
+++ b/net/dsa/dsa2.c
@@ -711,8 +711,6 @@ static int dsa_switch_parse_member_of(struct dsa_switch *ds,
return sz;
ds->index = m[1];
- if (ds->index >= DSA_MAX_SWITCHES)
- return -EINVAL;
ds->dst = dsa_tree_touch(m[0]);
if (!ds->dst)