summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/52xx/mpc52xx_gpio.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2009-01-10 01:49:05 +0300
committerGrant Likely <grant.likely@secretlab.ca>2009-01-10 01:49:05 +0300
commitddd527d56a0e635abdc7ffeb688cdde7593ad2d3 (patch)
treebe71c0720d6174a9701fcf217ab2a482e559a1ff /arch/powerpc/platforms/52xx/mpc52xx_gpio.c
parentd30239a0ef2000cfae6c60f8e870da2d8dba4d22 (diff)
downloadlinux-ddd527d56a0e635abdc7ffeb688cdde7593ad2d3.tar.xz
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/powerpc/platforms/52xx/mpc52xx_gpio.c')
-rw-r--r--arch/powerpc/platforms/52xx/mpc52xx_gpio.c3
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(&regs->status) & (1 << (31 - 23))) ? 1 : 0;
-
- return ret;
}
static void