Files
linux/include/net
Vivien Didelot d607525bd9 net: dsa: return directly from dsa_to_port
Return directly from within the loop as soon as the port is found,
otherwise we won't return NULL if the end of the list is reached.

Fixes: b96ddf254b ("net: dsa: use ports list in dsa_to_port")
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-29 12:07:49 -07:00
..
2019-01-23 11:18:00 -08:00
2019-04-19 14:07:40 -07:00
2019-09-13 21:44:19 +02:00
2019-10-08 11:28:33 +02:00
2019-09-13 21:44:19 +02:00
2018-09-13 09:04:58 -07:00
2017-11-08 16:12:33 +09:00
2017-12-05 14:37:13 -05:00
2018-05-16 07:23:35 +02:00
2019-04-22 21:47:25 -07:00
2019-10-05 16:29:00 -07:00
2019-10-07 09:58:28 -04:00
2019-06-19 11:23:13 -04:00
2019-06-19 11:23:13 -04:00