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

2015-06-03 Thread David Miller
From: Rasmus Villemoes 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 long

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

2015-06-03 Thread Rasmus Villemoes
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 --