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)
commit908414af255ea974bd0cfe54918d7957cd457d15
tree931152c6cf9f63212f627d91346f2ca4d3d4de41
parent961d1bbecf33de0321cc59f0ea16dd517ecbf3fb
atmel: Remove open-coded and wrong strcasecmp

The kernel's string library does in fact have strcasecmp, at least
since ded220bd8f08 ("[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