net: dsa: Consistently set and use ps->num_ports
authorAndrew Lunn <andrew@lunn.ch>
Thu, 2 Apr 2015 02:06:33 +0000 (04:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
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 <andrew@lunn.ch>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c