powerpc/aoa: gpio-pmf.c: 3 * redundant code
authord binderman <dcb314@hotmail.com>
Fri, 19 Mar 2010 00:12:22 +0000 (00:12 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Apr 2010 08:00:36 +0000 (18:00 +1000)
Signed-off-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
sound/aoa/core/gpio-pmf.c

index 6776d1c12b63a30fafa4b16b52ddc638c1e0dcb2..7e267c9379bc18dac80998b95701a77068aaa85d 100644 (file)
@@ -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)