Re: [PATCH 3/3] staging: wilc1000: Reduce scope for a few variables in mac_ioctl()

From: Lino Sanfilippo
Date: Mon Jul 25 2016 - 15:18:22 EST


>
> - if (strncasecmp(buff, "RSSI", length) == 0) {
> + if (strncasecmp(buff, "RSSI", 0) == 0) {
> + s8 rssi;
> +

Um, please think a second about if it makes any sense at all to compare
zero chars of two strings.

Lino