diff options
author | 2017-01-27 15:29:37 -0500 | |
---|---|---|
committer | 2017-01-29 18:42:46 -0500 | |
commit | 26895e299cfb583d304553e9c259e694a7e83397 (patch) | |
tree | 84efe62291aa646b75bb4778db06644e2062fb74 /drivers/net/xen-netfront.c | |
parent | net: dsa: variable number of ports (diff) | |
download | linux-rng-26895e299cfb583d304553e9c259e694a7e83397.tar.xz linux-rng-26895e299cfb583d304553e9c259e694a7e83397.zip |
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>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions