diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2013-02-04 17:42:04 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-02-04 21:46:56 +0100 |
commit | 476171ce7850b28280db6a2d0c0e4d3ff26c8117 (patch) | |
tree | 2ee44ee89c40c323471d9cfa076b3737868071d4 /drivers/gpio/gpiolib.c | |
parent | 1107ca104f0331627f6446bfefa2d4b0e673db18 (diff) | |
download | op-kernel-dev-476171ce7850b28280db6a2d0c0e4d3ff26c8117.zip op-kernel-dev-476171ce7850b28280db6a2d0c0e4d3ff26c8117.tar.gz |
gpiolib: add missing braces in gpio_direction_show
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>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index e27877a..e14eb88 100644 --- 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; |