From: Takashi Iwai <tiwai@suse.de>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Johannes Berg <johannes@sipsolutions.net>,
alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: aoa: Remove wrong i2c_set_clientdata in onyx_i2c_remove()
Date: Fri, 10 Dec 2010 12:15:34 +0100 [thread overview]
Message-ID: <s5h4oal3mll.wl%tiwai@suse.de> (raw)
In-Reply-To: <1291973666.27848.1.camel@mola>
At Fri, 10 Dec 2010 17:34:26 +0800,
Axel Lin wrote:
>
> It does not make sense to set clientdata to onyx in onyx_i2c_remove()
> as we are going to kfree onyx.
> What we really want here is i2c_set_clientdata(client, NULL);
> Since the i2c core will take care of it now, so this patch just removes it.
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Thanks, applied now.
Takashi
> ---
> sound/aoa/codecs/onyx.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c
> index 91852e4..3687a6c 100644
> --- a/sound/aoa/codecs/onyx.c
> +++ b/sound/aoa/codecs/onyx.c
> @@ -1114,7 +1114,6 @@ static int onyx_i2c_remove(struct i2c_client *client)
> of_node_put(onyx->codec.node);
> if (onyx->codec_info)
> kfree(onyx->codec_info);
> - i2c_set_clientdata(client, onyx);
> kfree(onyx);
> return 0;
> }
> --
> 1.7.2
>
>
>
parent reply other threads:[~2010-12-10 11:15 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1291973666.27848.1.camel@mola>]
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=s5h4oal3mll.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=axel.lin@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®