projects
/
platform
/
core
/
system
/
peripheral-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40a7004
)
Fix build break on 64 bit architecture
57/128257/1
author
Hyeongsik Min
<hyeongsik.min@samsung.com>
Mon, 8 May 2017 07:39:38 +0000
(16:39 +0900)
committer
Hyeongsik 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
patch
|
blob
|
history
diff --git
a/src/interface/gpio.c
b/src/interface/gpio.c
index
4c9f7ae
..
7e689b3
100644
(file)
--- a/
src/interface/gpio.c
+++ b/
src/interface/gpio.c
@@
-326,12
+326,11
@@
int gpio_open_isr(int gpiopin)
return fd;
}
-int gpio_close_isr(int f
ile_hndl
)
+int gpio_close_isr(int f
d
)
{
- if (file_hndl == (int)NULL)
- return -EINVAL;
+ if (fd <= 0) return -EINVAL;
- close(f
ile_hndl
);
+ close(f
d
);
return 0;
}