From: Rasmus Villemoes Date: Thu, 4 Dec 2014 10:30:40 +0000 (+0100) Subject: net: tulip: Remove private "strncmp" X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36c71a735ac2c7046ab1c234c734b2dd9035ad4f;p=pandora-kernel.git net: tulip: Remove private "strncmp" The comment says that the built-in strncmp didn't work. That is not surprising, as apparently "str" semantics are not really what is wanted (hint: de4x5_strncmp only stops when two different bytes are encountered or the end is reached; not if either byte happens to be 0). de4x5_strncmp is actually a memcmp (except for the signature and that bytes are not necessarily treated as unsigned char); since only the boolean value of the result is used we can just replace de4x5_strncmp with memcmp. Signed-off-by: Rasmus Villemoes Acked-by: Grant Grundler Signed-off-by: David S. Miller --- Reading git-diff-tree failed