aio: fix error checking of maa_check_aio
authorBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 13 May 2014 21:58:43 +0000 (21:58 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 13 May 2014 21:58:43 +0000 (21:58 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/aio/aio.c

index e1d9ad7..6b12a14 100644 (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: