forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
d30239a0ef
commit
ddd527d56a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user