Skip to content

Commit

Permalink
powerpc/aoa: gpio-pmf.c: 3 * redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
d binderman authored and Benjamin Herrenschmidt committed Apr 7, 2010
1 parent 469d62b commit 6237cda
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sound/aoa/core/gpio-pmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,9 @@ static void pmf_gpio_exit(struct gpio_runtime *rt)
mutex_destroy(&rt->line_in_notify.mutex);
mutex_destroy(&rt->line_out_notify.mutex);

if (rt->headphone_notify.gpio_private)
kfree(rt->headphone_notify.gpio_private);
if (rt->line_in_notify.gpio_private)
kfree(rt->line_in_notify.gpio_private);
if (rt->line_out_notify.gpio_private)
kfree(rt->line_out_notify.gpio_private);
kfree(rt->headphone_notify.gpio_private);
kfree(rt->line_in_notify.gpio_private);
kfree(rt->line_out_notify.gpio_private);
}

static void pmf_handle_notify_irq(void *data)
Expand Down

0 comments on commit 6237cda

Please sign in to comment.