]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Move ports assignment closer to error checking
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 26 Jan 2017 18:45:54 +0000 (10:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 20:43:53 +0000 (15:43 -0500)
commitce4464069885981531fedc693f3c99bd6ea6be2a
treec58565a7cca138c1764db6bc4f9508e62d08a27d
parentd902c8ccca1a1bc812725369b7e1f8b9626548a0
net: dsa: Move ports assignment closer to error checking

Move the assignment of ports in _dsa_register_switch() closer to where
it is checked, no functional change. Re-order declarations to be
preserve the inverted christmas tree style.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c