Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1231036

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

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH 22/38] orinoco: fix checking for default value
Date 2015-09-23 01:20 +0200
Message-ID <qbF0T-35n-31@gated-at.bofh.it> (permalink)
References <qb9u2-83M-3@gated-at.bofh.it> <qb9u3-83M-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Andrzej Hajda <a.hajda@samsung.com>
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_than_zero.cocci [1].
> 
> [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576
> 
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 22/38] orinoco: fix checking for default value David Miller <davem@davemloft.net> - 2015-09-23 01:20 +0200

csiph-web