mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: dsa: Fix inverted test for multiple CPU interface
Remove the wrong !, otherwise we get false positives about having
multiple CPU interfaces.
Fixes: b22de49086 ("net: dsa: store CPU switch structure in the tree")
Signed-off-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6db6f0eae6
commit
23e3d618e4
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent)
|
|||
continue;
|
||||
|
||||
if (!strcmp(name, "cpu")) {
|
||||
if (!dst->cpu_switch) {
|
||||
if (dst->cpu_switch) {
|
||||
netdev_err(dst->master_netdev,
|
||||
"multiple cpu ports?!\n");
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue