Private
Public Access
2
0

aio.c: remove less-than-zero comparison of an unsigned var

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-11-25 13:32:05 +00:00
parent 1a1c9c2db2
commit bb5314efc1

View File

@@ -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;
}