projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1107ca1
)
gpiolib: add missing braces in gpio_direction_show
author
Alexandre Courbot
<acourbot@nvidia.com>
Mon, 4 Feb 2013 08:42:04 +0000
(17:42 +0900)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 4 Feb 2013 20:46:56 +0000
(21:46 +0100)
Add missing braces in an if..else condition.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpiolib.c
b/drivers/gpio/gpiolib.c
index e27877ad01635fa947e7300f5b04674947446b3f..e14eb88bbe8dfc146b8bc63f36ca877f9d0a7fab 100644
(file)
--- a/
drivers/gpio/gpiolib.c
+++ b/
drivers/gpio/gpiolib.c
@@
-212,13
+212,14
@@
static ssize_t gpio_direction_show(struct device *dev,
mutex_lock(&sysfs_lock);
- if (!test_bit(FLAG_EXPORT, &desc->flags))
+ if (!test_bit(FLAG_EXPORT, &desc->flags))
{
status = -EIO;
- else
+ } else {
gpio_get_direction(gpio);
status = sprintf(buf, "%s\n",
test_bit(FLAG_IS_OUT, &desc->flags)
? "out" : "in");
+ }
mutex_unlock(&sysfs_lock);
return status;
This page took
0.025415 seconds
and
5
git commands to generate.