diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-01-09 23:49:05 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-01-09 23:49:05 +0100 |
commit | ddd527d56a0e635abdc7ffeb688cdde7593ad2d3 (patch) | |
tree | be71c0720d6174a9701fcf217ab2a482e559a1ff | |
parent | powerpc/mpc52xx: Properly update irq_desc when set_type() is called. (diff) | |
download | linux-ddd527d56a0e635abdc7ffeb688cdde7593ad2d3.tar.xz linux-ddd527d56a0e635abdc7ffeb688cdde7593ad2d3.zip |
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>
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_gpio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_gpio.c b/arch/powerpc/platforms/52xx/mpc52xx_gpio.c index 8a455ebce98d..07f89ae46d04 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_gpio.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_gpio.c @@ -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(®s->status) & (1 << (31 - 23))) ? 1 : 0; - - return ret; } static void |