Fix build break on 64 bit architecture 57/128257/1
authorHyeongsik Min <hyeongsik.min@samsung.com>
Mon, 8 May 2017 07:39:38 +0000 (16:39 +0900)
committerHyeongsik Min <hyeongsik.min@samsung.com>
Mon, 8 May 2017 07:39:38 +0000 (16:39 +0900)
Change-Id: Ief79422f096a31447dc79068d1128594f4129e95
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
src/interface/gpio.c

index 4c9f7ae..7e689b3 100644 (file)
@@ -326,12 +326,11 @@ int gpio_open_isr(int gpiopin)
        return fd;
 }
 
-int gpio_close_isr(int file_hndl)
+int gpio_close_isr(int fd)
 {
-       if (file_hndl == (int)NULL)
-               return -EINVAL;
+       if (fd <= 0) return -EINVAL;
 
-       close(file_hndl);
+       close(fd);
 
        return 0;
 }