commit | 44e50ddbc74a4bd6a862be9e6de22bce8c0b4150 | [log] [tgz] |
---|---|---|
author | Andrew Lunn <andrew@lunn.ch> | Thu Apr 02 04:06:33 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 01 22:55:40 2015 -0400 |
tree | 924eef387293c87024a27716e711c5649c211ed9 | |
parent | 14ef6ad22a2db28021e8ea8cd068fe5fcd88de7b [diff] |
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>