summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2017-01-22 16:16:45 -0500
committerDavid S. Miller <davem@davemloft.net>2017-01-24 13:33:50 -0500
commit23e3d618e49eb560052fe59a3c9629d3650ba46e (patch)
tree6dde7aa8fc403eca4c3a99ad879573b084cdf894 /net/dsa/dsa.c
parent6db6f0eae6052b70885562e1733896647ec1d807 (diff)
net: dsa: Fix inverted test for multiple CPU interface
Remove the wrong !, otherwise we get false positives about having multiple CPU interfaces. Fixes: b22de490869d ("net: dsa: store CPU switch structure in the tree") Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r--net/dsa/dsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 77cb78767f1d..1f3afeb673d6 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -225,7 +225,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent)
225 continue; 225 continue;
226 226
227 if (!strcmp(name, "cpu")) { 227 if (!strcmp(name, "cpu")) {
228 if (!dst->cpu_switch) { 228 if (dst->cpu_switch) {
229 netdev_err(dst->master_netdev, 229 netdev_err(dst->master_netdev,
230 "multiple cpu ports?!\n"); 230 "multiple cpu ports?!\n");
231 return -EINVAL; 231 return -EINVAL;