aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorVivien Didelot <[email protected]>2019-10-25 14:48:53 -0400
committerDavid S. Miller <[email protected]>2019-10-29 12:07:49 -0700
commitd607525bd912860aad137326a1076d1e9880ddf0 (patch)
tree86c282a61aa3a8b9c1859b25592c6cbb7a550414 /lib/test_overflow.c
parent92d72f1b8bbbd87220daa49cd1253ce72bb7553c (diff)
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: b96ddf254b09 ("net: dsa: use ports list in dsa_to_port") Signed-off-by: Vivien Didelot <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions