]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0749da3b4e51c4cf2c4b92fb9d096c8de608d562
tree22a535f08c5804cb4c44b07d213db472a20c816c
parent6529585603e5485ef83a69258cbc74cb3602dc9d
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