From: Andrew Lunn Date: Thu, 2 Apr 2015 02:06:33 +0000 (+0200) Subject: net: dsa: Consistently set and use ps->num_ports X-Git-Tag: omap-for-v4.2/o2_dc~131^2~87^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e50ddbc74a4bd6a862be9e6de22bce8c0b4150;p=pandora-kernel.git 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 Tested-by: Guenter Roeck Reviewed-by: Guenter Roeck Signed-off-by: David S. Miller --- Reading git-diff-tree failed