diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-01-09 15:49:05 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-01-09 15:49:05 -0700 |
commit | ddd527d56a0e635abdc7ffeb688cdde7593ad2d3 (patch) | |
tree | be71c0720d6174a9701fcf217ab2a482e559a1ff /arch | |
parent | d30239a0ef2000cfae6c60f8e870da2d8dba4d22 (diff) | |
download | blackbird-obmc-linux-ddd527d56a0e635abdc7ffeb688cdde7593ad2d3.tar.gz blackbird-obmc-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>
Diffstat (limited to 'arch')
-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 |