提交 6237cdac 编写于 作者: D d binderman 提交者: Benjamin Herrenschmidt

powerpc/aoa: gpio-pmf.c: 3 * redundant code

Signed-off-by: NDavid Binderman <dcb314@hotmail.com>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 469d62be
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册