From: Keith Packard Date: Sat, 21 Dec 2013 06:44:20 +0000 (-0800) Subject: altos: unsigned value in ao_pyro_set checked for negative value X-Git-Tag: 1.3.1~41 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=316d898715746a379068ac8511692bdb9da14b39 altos: unsigned value in ao_pyro_set checked for negative value No sense checking unsigned values for less than zero. Signed-off-by: Keith Packard --- diff --git a/src/core/ao_pyro.c b/src/core/ao_pyro.c index a260aa99..e59f5bc4 100644 --- a/src/core/ao_pyro.c +++ b/src/core/ao_pyro.c @@ -436,7 +436,7 @@ ao_pyro_set(void) if (ao_cmd_status != ao_cmd_success) return; p = ao_cmd_lex_i; - if (p < 0 || AO_PYRO_NUM <= p) { + if (AO_PYRO_NUM <= p) { printf ("invalid pyro channel %d\n", p); return; }