commit | 26895e299cfb583d304553e9c259e694a7e83397 | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Fri Jan 27 15:29:37 2017 -0500 |
committer | David S. Miller <davem@davemloft.net> | Sun Jan 29 18:42:46 2017 -0500 |
tree | 84efe62291aa646b75bb4778db06644e2062fb74 | |
parent | a0c02161ecfc2f40a0837926efac5376bc6fd6d3 [diff] |
net: dsa: use ds->num_ports when possible The dsa_switch structure contains the number of ports. Use it where the structure is valid instead of the DSA_MAX_PORTS value. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>