Skip to content

Commit 0f67f16

Browse files
M-Vaittinenbrgl
authored andcommitted
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]>
1 parent be053b2 commit 0f67f16

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpio/gpio-mmio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ static int bgpio_get_dir(struct gpio_chip *gc, unsigned int gpio)
386386
if (!(gc->read_reg(gc->reg_dir_in) & bgpio_line2mask(gc, gpio)))
387387
return GPIO_LINE_DIRECTION_OUT;
388388

389-
/* This should not happen */
390389
return GPIO_LINE_DIRECTION_IN;
391390
}
392391

0 commit comments

Comments
 (0)