projects
/
platform
/
core
/
api
/
peripheral-io.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccce883
)
gpio: fix to free a handle when peripheral_gdbus_gpio_close() is failed
43/165643/1
accepted/tizen/unified/20180103.151843
submit/tizen/20180103.062104
author
Segwon
<segwon.han@samsung.com>
Wed, 3 Jan 2018 04:22:51 +0000
(13:22 +0900)
committer
Segwon
<segwon.han@samsung.com>
Wed, 3 Jan 2018 04:22:51 +0000
(13:22 +0900)
Change-Id: Ibab4d38a57e91b11f2c5a6e1b21e94d2c6e40eed
Signed-off-by: Segwon <segwon.han@samsung.com>
src/peripheral_gpio.c
patch
|
blob
|
history
diff --git
a/src/peripheral_gpio.c
b/src/peripheral_gpio.c
index
0b4252c
..
eb2c999
100644
(file)
--- a/
src/peripheral_gpio.c
+++ b/
src/peripheral_gpio.c
@@
-105,10
+105,8
@@
int peripheral_gpio_close(peripheral_gpio_h gpio)
/* call gpio_close */
ret = peripheral_gdbus_gpio_close(gpio);
- if (ret != PERIPHERAL_ERROR_NONE)
{
+ if (ret != PERIPHERAL_ERROR_NONE)
_E("Failed to close the gpio pin, ret : %d", ret);
- return ret;
- }
peripheral_interface_gpio_close(gpio);