From: Kevin Corry <corryk@us.ibm.com>
To: "Mark Peloquin" <peloquin@us.ibm.com>, Robert Varga <nite@hq.alert.sk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] EVMS core 2/4: evms.h
Date: Fri, 4 Oct 2002 09:43:16 -0500 [thread overview]
Message-ID: <02100409431604.02266@boiler> (raw)
In-Reply-To: <02100409034403.02266@boiler>
On Friday 04 October 2002 09:03, Kevin Corry wrote:
> On Friday 04 October 2002 08:59, Mark Peloquin wrote:
> > On 10/04/2002 at 7:28 AM, Robert Varga wrote:
> > <snip...>
> >
> > > Possibly shortened to:
> > >
> > > static inline int list_member(struct list_head *member)
> > > {
> > > return member->next && member->prev;
> > > }
> > >
> > > Faster, and (at least to me) it looks more obvious.
> >
> > Yes, this may be shorter. However with this change
> > the return type would also need to be changed to
> > portable across archs.
>
> What would the return type have to be?
Hmm...seemed to be a misunderstanding. The "&&" operator causes the
expression to evaluate to an int, and not to a list_head*. The above should
work fine.
--
Kevin Corry
corryk@us.ibm.com
http://evms.sourceforge.net/
next prev parent reply other threads:[~2002-10-04 15:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-04 13:59 [Evms-devel] Re: [PATCH] EVMS core 2/4: evms.h Mark Peloquin
2002-10-04 14:03 ` Kevin Corry
2002-10-04 14:43 ` Kevin Corry [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-04 14:56 Mark Peloquin
2002-10-03 12:36 Kevin Corry
2002-10-03 14:50 ` Christoph Hellwig
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=02100409431604.02266@boiler \
--to=corryk@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nite@hq.alert.sk \
--cc=peloquin@us.ibm.com \
/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