net: dsa: lantiq_gswip: Minor code style improvements
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 15 Sep 2018 12:08:48 +0000 (14:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:12:11 +0000 (08:12 -0700)
commit0e630b598e87440d95e45289d24e878156bcec00
tree22a535f08c5804cb4c44b07d213db472a20c816c
parenta44ecfbda48f1ddc52e6119f594e3711c1b39924
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>
drivers/net/dsa/lantiq_gswip.c