net: dsa: Consistently set and use ps->num_ports
authorAndrew Lunn <[email protected]>
Thu, 2 Apr 2015 02:06:33 +0000 (04:06 +0200)
committerDavid S. Miller <[email protected]>
Thu, 2 Apr 2015 02:55:40 +0000 (22:55 -0400)
commit44e50ddbc74a4bd6a862be9e6de22bce8c0b4150
tree924eef387293c87024a27716e711c5649c211ed9
parent14ef6ad22a2db28021e8ea8cd068fe5fcd88de7b
net: dsa: Consistently set and use ps->num_ports

As a step towards consolidating code, consistently set the
number of ports in the private state structure, and make use of it in
loops.

Signed-off-by: Andrew Lunn <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c