]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/mpc52xx: remove dead code from GPIO driver
authorWolfram Sang <w.sang@pengutronix.de>
Fri, 9 Jan 2009 22:49:05 +0000 (15:49 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 9 Jan 2009 22:49:05 +0000 (15:49 -0700)
Eliminate duplicate return statements

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/52xx/mpc52xx_gpio.c

index 8a455ebce98d16306eb8b926da3e1684ac406ba0..07f89ae46d04b1953bc9d1d45f6cce0cd5b844f0 100644 (file)
@@ -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