Private
Public Access
2
0

aio: fix error checking of maa_check_aio

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-13 21:58:43 +00:00
parent b7d38a22e8
commit 4f7277f389

View File

@@ -53,7 +53,7 @@ maa_aio_context* maa_aio_init(unsigned int aio_channel)
{
maa_aio_context* dev;
unsigned int checked_pin = maa_check_aio(aio_channel);
int checked_pin = maa_check_aio(aio_channel);
if (checked_pin < 0) {
switch(checked_pin) {
case -1: