From bb5314efc17a1773ef3e4a249e7f171b1993d7f2 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Tue, 25 Nov 2014 13:32:05 +0000 Subject: [PATCH] aio.c: remove less-than-zero comparison of an unsigned var Signed-off-by: Brendan Le Foll --- src/aio/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aio/aio.c b/src/aio/aio.c index 30ccbfb..f871fbb 100644 --- a/src/aio/aio.c +++ b/src/aio/aio.c @@ -67,7 +67,7 @@ mraa_aio_init(unsigned int aio) if (pre_ret != MRAA_SUCCESS) return NULL; } - if (aio < 0 || aio > plat->aio_count) { + if (aio > plat->aio_count) { syslog(LOG_ERR, "aio: requested channel out of range"); return NULL; } -- 2.7.4