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)
commitbc1727d242fa595c84e8f42b292e82151ba8cf06
treec58565a7cca138c1764db6bc4f9508e62d08a27d
parent3512a8e95e6acb51d4cd04480689ac484ed538c2
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