diff options
author | 2015-06-03 13:44:03 +0200 | |
---|---|---|
committer | 2015-06-03 20:21:24 -0700 | |
commit | 3349b0b79e38f740fb794d3989d8bb3dd107fda0 (patch) | |
tree | 4043f11c3313968c29fc3ae13d434f2285a57a58 /net/switchdev/switchdev.c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue (diff) | |
download | wireguard-linux-3349b0b79e38f740fb794d3989d8bb3dd107fda0.tar.xz wireguard-linux-3349b0b79e38f740fb794d3989d8bb3dd107fda0.zip |
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>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions