]> git.baikalelectronics.ru Git - kernel.git/commit
atmel: Remove open-coded and wrong strcasecmp
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 21 Jan 2015 11:52:07 +0000 (12:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 23 Jan 2015 19:38:54 +0000 (21:38 +0200)
commite91ced75984ee164a1c61c1843d69c8f980992f5
tree931152c6cf9f63212f627d91346f2ca4d3d4de41
parentcf9c975825a5630eb5a8d3ebc7e4dfb3ffe9c9db
atmel: Remove open-coded and wrong strcasecmp

The kernel's string library does in fact have strcasecmp, at least
since 56f404f2fe7a ("[STRING]: Move strcasecmp/strncasecmp to
lib/string.c"). Moreover, this open-coded version is in fact wrong: If
the strings only differ in their last character, a and b have already
been incremented to point to the terminating NUL bytes, so they would
wrongly be treated as equal.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/atmel.c