]> git.baikalelectronics.ru Git - kernel.git/commit
net: tulip: rearrange order of searching for substrings
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 3 Jun 2015 11:44:03 +0000 (13:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 03:21:24 +0000 (20:21 -0700)
commit151fd80dcc2d803ab5f5b4e5c6f51ce74212dd14
tree4043f11c3313968c29fc3ae13d434f2285a57a58
parente1e67188cbb4325deff11f52eac73437ef7653ca
net: tulip: rearrange order of searching for substrings

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@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/de4x5.c