From: Ingo Molnar <mingo@elte.hu>
To: "Figo.zhang" <figo1802@gmail.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH RESEND]X86:microcode: fix vfree()
Date: Sun, 7 Jun 2009 16:28:19 +0200 [thread overview]
Message-ID: <20090607142819.GD21340@elte.hu> (raw)
In-Reply-To: <1244384715.3402.8.camel@myhost>
* Figo.zhang <figo1802@gmail.com> wrote:
> On Sun, 2009-06-07 at 16:21 +0200, Ingo Molnar wrote:
> > (Note: it's not a 'resend', it's v2 of the patch)
> >
> > * Figo.zhang <figo1802@gmail.com> wrote:
> >
> > > vfree() does its own 'NULL' check, so no need for check before
> > > calling it.
> > >
> > > Signed-off-by: Figo.zhang <figo1802@gmail.com>
> > > ---
> > > arch/x86/kernel/microcode_amd.c | 13 +++++--------
> > > 1 files changed, 5 insertions(+), 8 deletions(-)
> > >
> > > diff --git a/arch/x86/kernel/microcode_amd.c b/arch/x86/kernel/microcode_amd.c
> > > index 453b579..8f52cf4 100644
> > > --- a/arch/x86/kernel/microcode_amd.c
> > > +++ b/arch/x86/kernel/microcode_amd.c
> > > @@ -257,10 +257,9 @@ static int install_equiv_cpu_table(const u8 *buf)
> > >
> > > static void free_equiv_cpu_table(void)
> > > {
> > > - if (equiv_cpu_table) {
> > > - vfree(equiv_cpu_table);
> > > - equiv_cpu_table = NULL;
> > > - }
> > > + vfree(equiv_cpu_table);
> > > + equiv_cpu_table = NULL;
> > > +
>
> i motify by vim, you said this line?
yes, that extra empty newline should not be there. (i.e. the line
should be removed)
Ingo
next prev parent reply other threads:[~2009-06-07 14:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-07 5:18 [PATCH]X86:microcode: fix vfree() Figo.zhang
2009-06-07 14:01 ` Ingo Molnar
2009-06-07 14:18 ` [PATCH RESEND]X86:microcode: " Figo.zhang
2009-06-07 14:21 ` Ingo Molnar
2009-06-07 14:25 ` Figo.zhang
2009-06-07 14:28 ` Ingo Molnar [this message]
2009-06-07 14:30 ` [PATCH v2]X86:microcode: " Figo.zhang
2009-06-07 14:42 ` [tip:x86/microcode] x86, microcode: Simplify vfree() use tip-bot for Figo.zhang
2009-06-10 14:23 ` [PATCH v2]X86:microcode: fix vfree() Figo.zhang
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=20090607142819.GD21340@elte.hu \
--to=mingo@elte.hu \
--cc=figo1802@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.