aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMatti Vaittinen <[email protected]>2019-11-13 08:43:52 +0000
committerBartosz Golaszewski <[email protected]>2019-11-13 12:49:42 +0000
commit0f67f16a6e88749fc3bf88da7515d3fff472a1cc (patch)
tree4cb273361d7fe468f360a279ef8f1322a57b3d24 /drivers
parentgpio: em: Use platform_get_irq() to obtain interrupts (diff)
downloadkernel-0f67f16a6e88749fc3bf88da7515d3fff472a1cc.tar.gz
kernel-0f67f16a6e88749fc3bf88da7515d3fff472a1cc.zip
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 <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers')
-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;
}