net: dsa: qca8k: tidy for loop in setup and add cpu port check
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 19 Oct 2021 00:08:50 +0000 (02:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 13:16:37 +0000 (14:16 +0100)
commit040e926f5813a5f4cc18dbff7c942d1e52f368f2
treee7adb4168b41adf078ede487a565f8c9fc3fabd4
parent37ba803dbd3f4fa658cbd1a46c43009f94173bf2
net: dsa: qca8k: tidy for loop in setup and add cpu port check

Tidy and organize qca8k setup function from multiple for loop.
Change for loop in bridge leave/join to scan all port and skip cpu port.
No functional change intended.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c