Re: [PATCH 22/38] orinoco: fix checking for default value

2015-09-22 Thread David Miller
From: Andrzej Hajda Date: Mon, 21 Sep 2015 15:33:54 +0200 > 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_t

[PATCH 22/38] orinoco: fix checking for default value

2015-09-21 Thread Andrzej Hajda
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.kerne