From: d binderman <dcb314@hotmail.com>
To: <johannes@sipsolutions.net>
Cc: linuxppc-dev@ozlabs.org
Subject: [PATCH]: core/gpio-pmf.c: 3 * redundant code
Date: Fri, 19 Mar 2010 10:12:22 +0000 [thread overview]
Message-ID: <BLU108-W15D28ACC0F582E99E06AC99C2A0@phx.gbl> (raw)
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
_________________________________________________________________
Send us your Hotmail stories and be featured in our newsletter
http://clk.atdmt.com/UKM/go/195013117/direct/01/
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: bug45.patch --]
[-- Type: text/x-patch, Size: 764 bytes --]
Signed-off-by: David Binderman <dcb314@hotmail.com>
--- aoa/core/gpio-pmf.c.sav 2010-03-19 10:07:30.000000000 +0000
+++ aoa/core/gpio-pmf.c 2010-03-19 10:07:40.000000000 +0000
@@ -115,12 +115,9 @@ static void pmf_gpio_exit(struct gpio_ru
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)
reply other threads:[~2010-03-19 10:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLU108-W15D28ACC0F582E99E06AC99C2A0@phx.gbl \
--to=dcb314@hotmail.com \
--cc=johannes@sipsolutions.net \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox