summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mmio.c
diff options
context:
space:
mode:
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>2019-11-13 10:43:52 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2019-11-13 13:49:42 +0100
commit0f67f16a6e88749fc3bf88da7515d3fff472a1cc (patch)
tree4cb273361d7fe468f360a279ef8f1322a57b3d24 /drivers/gpio/gpio-mmio.c
parentbe053b2dc91c1a02881db0c90e9438b56ac1a019 (diff)
downloadlinux-0f67f16a6e88749fc3bf88da7515d3fff472a1cc.tar.bz2
gpio: mmio: remove untrue leftover comment
The comment should have been removed when new GPIO direction definitions were taken in use as the function logic was changed. It is now perfectly valid and Ok to hit the return from the bottom of the direction getting function. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-mmio.c')
-rw-r--r--drivers/gpio/gpio-mmio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c
index cd07c948649f..f729e3e9e983 100644
--- a/drivers/gpio/gpio-mmio.c
+++ b/drivers/gpio/gpio-mmio.c
@@ -386,7 +386,6 @@ static int bgpio_get_dir(struct gpio_chip *gc, unsigned int gpio)
if (!(gc->read_reg(gc->reg_dir_in) & bgpio_line2mask(gc, gpio)))
return GPIO_LINE_DIRECTION_OUT;
- /* This should not happen */
return GPIO_LINE_DIRECTION_IN;
}