Skip to content

Commit 4295f4c

Browse files
Dan CarpenterBartosz Golaszewski
authored andcommitted
gpio: mb86s7x: remove some dead code in mb86s70_gpio_to_irq()
The platform_get_irq() function never returns zero so delete this check. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 101b259 commit 4295f4c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpio/gpio-mb86s7x.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ static int mb86s70_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
145145
irq = platform_get_irq(to_platform_device(gc->parent), index);
146146
if (irq < 0)
147147
return irq;
148-
if (irq == 0)
149-
break;
150148
if (irq_get_irq_data(irq)->hwirq == offset)
151149
return irq;
152150
}

0 commit comments

Comments
 (0)