kernelbase: Break out of inner for-loop early in find_substring.
If I'm interpreting this code correctly, once either of these two
if-conditions are true once, they will also be true at some point
during all of the remaining iterations of the for-loop. Thus, we can
just stop the for-loop here.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
Showing
Please
register
or
sign in
to comment