Skip to content

Commit ddd527d

Browse files
Wolfram Sangglikely
authored andcommitted
powerpc/mpc52xx: remove dead code from GPIO driver
Eliminate duplicate return statements Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
1 parent d30239a commit ddd527d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/powerpc/platforms/52xx/mpc52xx_gpio.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,8 @@ static int mpc52xx_gpt_gpio_get(struct gpio_chip *gc, unsigned int gpio)
363363
{
364364
struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
365365
struct mpc52xx_gpt __iomem *regs = mm_gc->regs;
366-
unsigned int ret;
367366

368367
return (in_be32(&regs->status) & (1 << (31 - 23))) ? 1 : 0;
369-
370-
return ret;
371368
}
372369

373370
static void

0 commit comments

Comments
 (0)