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:
954230d
)
Remove exception handling in gpio_open()
55/126155/3
author
jino.cho
<jino.cho@samsung.com>
Thu, 20 Apr 2017 08:50:03 +0000
(17:50 +0900)
committer
jino.cho
<jino.cho@samsung.com>
Fri, 21 Apr 2017 02:01:41 +0000
(11:01 +0900)
Calling the gpio_close as a exception handling code in gpio_open()
was removed.
Change-Id: I9fb886d051aabd12b5222e37916c04ac5c464f36
Signed-off-by: jino.cho <jino.cho@samsung.com>
src/interface/gpio.c
patch
|
blob
|
history
diff --git
a/src/interface/gpio.c
b/src/interface/gpio.c
index
1a46413
..
4c9f7ae
100644
(file)
--- a/
src/interface/gpio.c
+++ b/
src/interface/gpio.c
@@
-32,10
+32,7
@@
int gpio_open(int gpiopin)
int fd, len, status;
char gpio_export[GPIO_BUFFER_MAX] = {0, };
- gpio_close(gpiopin);
-
fd = open(SYSFS_GPIO_DIR "/export", O_WRONLY);
-
if (fd < 0) {
char errmsg[MAX_ERR_LEN];
strerror_r(errno, errmsg, MAX_ERR_LEN);