mirror of
https://github.com/torvalds/linux.git
synced 2025-11-05 11:10:22 +02:00
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>
This commit is contained in:
parent
8e5cb84c67
commit
27d4d19d7c
1 changed files with 0 additions and 2 deletions
|
|
@ -711,8 +711,6 @@ static int dsa_switch_parse_member_of(struct dsa_switch *ds,
|
||||||
return sz;
|
return sz;
|
||||||
|
|
||||||
ds->index = m[1];
|
ds->index = m[1];
|
||||||
if (ds->index >= DSA_MAX_SWITCHES)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
ds->dst = dsa_tree_touch(m[0]);
|
ds->dst = dsa_tree_touch(m[0]);
|
||||||
if (!ds->dst)
|
if (!ds->dst)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue