diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-09-15 14:08:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-17 08:12:11 -0700 |
commit | 0e630b598e87440d95e45289d24e878156bcec00 (patch) | |
tree | 22a535f08c5804cb4c44b07d213db472a20c816c /net | |
parent | a44ecfbda48f1ddc52e6119f594e3711c1b39924 (diff) | |
download | linux-0e630b598e87440d95e45289d24e878156bcec00.tar.gz |
net: dsa: lantiq_gswip: Minor code style improvements
Use one code block when returning because the interface type is
unsupported and also check if some unsupported port gets configured.
In addition fix a double the and use dsa_is_cpu_port() instated of
manually getting the CPU port.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions