Skip to content

Commit

Permalink
powerpc/mpc52xx: remove dead code from GPIO driver
Browse files Browse the repository at this point in the history
Eliminate duplicate return statements

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Wolfram Sang authored and Grant Likely committed Jan 9, 2009
1 parent d30239a commit ddd527d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/powerpc/platforms/52xx/mpc52xx_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,8 @@ static int mpc52xx_gpt_gpio_get(struct gpio_chip *gc, unsigned int gpio)
{
struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
struct mpc52xx_gpt __iomem *regs = mm_gc->regs;
unsigned int ret;

return (in_be32(&regs->status) & (1 << (31 - 23))) ? 1 : 0;

return ret;
}

static void
Expand Down

0 comments on commit ddd527d

Please sign in to comment.