Tag: 7e724da64491b20257d46f100bcc6d6214c37b70

rndis_wlan: fix checking for default value

Author: Andrzej Hajda <a.hajda@samsung.com> Thresholds uses -1 to indicate that default value should be used. Since thresholds are unsigned sign checking makes no sense. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda Signed-off-by: David S. Miller — drivers/net/wireless/rndis_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 …

Continue reading