diff options
| author | Vivien Didelot <[email protected]> | 2017-10-26 15:22:55 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-27 15:00:09 +0000 |
| commit | 4a5b85ffe2a001b52d165931ad05d2d620daca3c (patch) | |
| tree | e36bcf74ffadedffa5dfc613bfd946e3245733c5 /net/dsa/dsa.c | |
| parent | net: dsa: rename dsa_is_normal_port helper (diff) | |
| download | kernel-4a5b85ffe2a001b52d165931ad05d2d620daca3c.tar.gz kernel-4a5b85ffe2a001b52d165931ad05d2d620daca3c.zip | |
net: dsa: use dsa_is_user_port everywhere
Most of the DSA code still check ds->enabled_port_mask directly to
inspect a given port type instead of using the provided dsa_is_user_port
helper. Change this.
Signed-off-by: Vivien Didelot <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
| -rw-r--r-- | net/dsa/dsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index a3abf7a7b9a2..fe0081730305 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -201,7 +201,7 @@ static int dsa_switch_rcv(struct sk_buff *skb, struct net_device *dev, #ifdef CONFIG_PM_SLEEP static bool dsa_is_port_initialized(struct dsa_switch *ds, int p) { - return ds->enabled_port_mask & (1 << p) && ds->ports[p].slave; + return dsa_is_user_port(ds, p) && ds->ports[p].slave; } int dsa_switch_suspend(struct dsa_switch *ds) |
