From: Jesper Juhl <jesper.juhl@gmail.com>
To: Michael Buesch <mbuesch@freenet.de>
Cc: Jesper Juhl <juhl-lkml@dif.dk>,
"Rickard E. (Rik) Faith" <faith@redhat.com>,
Rik Faith <faith@cs.unc.edu>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Small kfree cleanup, save a local variable.
Date: Sun, 19 Jun 2005 21:49:55 +0200 [thread overview]
Message-ID: <9a87484905061912492d6a9952@mail.gmail.com> (raw)
In-Reply-To: <200506192137.59719.mbuesch@freenet.de>
On 6/19/05, Michael Buesch <mbuesch@freenet.de> wrote:
> Quoting Jesper Juhl <juhl-lkml@dif.dk>:
> > Here's a patch with a small improvement to kernel/auditsc.c .
> > There's no need for the local variable struct audit_entry *e ,
> > we can just call kfree directly on container_of() .
>
> Did you look at the assembly output? Does it change?
> I think the compiler optimizes this variable away, anyway.
> So, if there's no improvement, I would personally prefer the
> original form as it's more readable.
>
gcc does optimize it away.
Personally I find both forms equally readable, and with the change the
source matches what the code actually ends up as, but I don't care
much one way or the other.
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
next prev parent reply other threads:[~2005-06-19 19:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-19 19:38 Jesper Juhl
2005-06-19 19:37 ` Michael Buesch
2005-06-19 19:49 ` Jesper Juhl [this message]
2005-06-19 20:13 ` Chris Wright
2005-06-19 20:19 ` Jesper Juhl
2005-06-19 20:20 ` Chris Wright
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=9a87484905061912492d6a9952@mail.gmail.com \
--to=jesper.juhl@gmail.com \
--cc=faith@cs.unc.edu \
--cc=faith@redhat.com \
--cc=juhl-lkml@dif.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=mbuesch@freenet.de \
/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
Powered by JetHome