mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "young dave" <hidave.darkstar@gmail.com>
Cc: "John Anthony Kazos Jr." <jakj@j-a-k-j.com>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: [patch -mm 1/1] remove useless tolower in isofs
Date: Tue, 29 May 2007 16:17:37 -0700	[thread overview]
Message-ID: <20070529161737.a19af5e6.akpm@linux-foundation.org> (raw)
In-Reply-To: <a8e1da0705272011g6ad2550eo153eb0e98590b11a@mail.gmail.com>

On Mon, 28 May 2007 03:11:04 +0000
"young dave" <hidave.darkstar@gmail.com> wrote:

> Hi,
> > And then there's the supercompact form.
> >
> > while (len--) {
> >         hash = partial_name_hash(tolower(*name++), hash);
> > }
> >
> > But I do not like the last one at all. The first one is the best, because
> > it clearly separates the condition and iteration parts of the expression,
> > while STILL being only three lines long. Or two, if you omit the braces.
> > (But you shouldn't.)
> >
> 
> IMO, I like the last one, but I prefer to keep the original author's
> one, I only remove the unnecessary tolower function.
> What do you think about this , Andrew?
> 

Don't care much.  The code as it stands is suitably paranoid about 
buggy implementations of tolower() which evaluate their arg more
than once ;)

Your email client replaces tabs with spaces.

  reply	other threads:[~2007-05-29 23:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-28  1:08 young dave
2007-05-28  2:53 ` John Anthony Kazos Jr.
2007-05-28  3:11   ` young dave
2007-05-29 23:17     ` Andrew Morton [this message]
2007-05-30  0:20       ` young dave
2007-05-30  5:32         ` young dave
2007-05-28  6:00 ` Pekka Enberg
2007-05-28 10:10   ` young dave
2007-05-28 10:16     ` Pekka Enberg

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=20070529161737.a19af5e6.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=hidave.darkstar@gmail.com \
    --cc=jakj@j-a-k-j.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome