From: d binderman Date: Fri, 19 Mar 2010 00:12:22 +0000 (+0000) Subject: powerpc/aoa: gpio-pmf.c: 3 * redundant code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6237cdac5dd26d5ba81acf5daa737c8645614410;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc/aoa: gpio-pmf.c: 3 * redundant code Signed-off-by: David Binderman Signed-off-by: Benjamin Herrenschmidt --- diff --git a/sound/aoa/core/gpio-pmf.c b/sound/aoa/core/gpio-pmf.c index 6776d1c12b63..7e267c9379bc 100644 --- a/sound/aoa/core/gpio-pmf.c +++ b/sound/aoa/core/gpio-pmf.c @@ -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)