Re: [PATCH] net: tulip: rearrange order of searching for substrings

From: David Miller
Date: Wed Jun 03 2015 - 23:21:52 EST


From: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Jun 2015 13:44:03 +0200

> Currently, two of the branches are dead code, since an earlier smaller
> substring would have been found ("TP" in the "TP_NW" case and either
> of "BNC" and "AUI" in the "BNC_AUI" case). Rearrange the strstr()
> calls so that the longer strings are searched for first.
>
> Signed-off-by: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>

Applied to net-next, thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/