staging: wilc1000: fix incorrect strncasecmp length
authorColin Ian King <colin.king@canonical.com>
Fri, 7 Apr 2017 23:44:03 +0000 (00:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 11:00:44 +0000 (13:00 +0200)
commitba508685d90fa361bb2f7d1e3cb86892a7b94ec2
treed770e560bdba37adcf4a4ad972ce8fc568e2468b
parent0e490657c7214cce33fbca3d88227298c5c968ae
staging: wilc1000: fix incorrect strncasecmp length

The strncasecmp of buff against the literal string RSSI
is using variable length which is zero. This should be instead
using the variable size instead.  Also remove the redundant
variable length.

Detected by PVS-Studio, warning: V575

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c