From: Wolfram Sang Date: Fri, 9 Jan 2009 22:49:05 +0000 (-0700) Subject: powerpc/mpc52xx: remove dead code from GPIO driver X-Git-Tag: v2.6.29-rc2~76^2~16^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ddd527d56a0e635abdc7ffeb688cdde7593ad2d3;p=linux-2.6-omap-h63xx.git powerpc/mpc52xx: remove dead code from GPIO driver Eliminate duplicate return statements Signed-off-by: Wolfram Sang Signed-off-by: Grant Likely --- diff --git a/arch/powerpc/platforms/52xx/mpc52xx_gpio.c b/arch/powerpc/platforms/52xx/mpc52xx_gpio.c index 8a455ebce98..07f89ae46d0 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