[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130715173508.GB20517@logfs.org>
Date: Mon, 15 Jul 2013 13:35:08 -0400
From: Jörn Engel <joern@...fs.org>
To: Filipe David Manana <fdmanana@...il.com>
Cc: linux-kernel@...r.kernel.org,
Chris Mason <chris.mason@...ionio.com>,
"linux-btrfs@...r.kernel.org" <linux-btrfs@...r.kernel.org>
Subject: Re: [PATCH 1/2] list: add list_del_each_entry
On Fri, 5 July 2013 23:38:01 +0100, Filipe David Manana wrote:
>
> > +#define list_del_each_entry(pos, head, member) \
> > + while (list_empty(head) && (pos = list_first_entry((head), \
> > + typeof(*pos), member), list_del((head)->next), 1))
> > +
>
> Shouldn't it be while (!list_empty(head) ... ?
> (not operator addition)
Obviously! Now where is that brown paperbag...
Will resend in a few days, including the _init variants dchinner asked
for.
Jörn
--
Computer system analysis is like child-rearing; you can do grievous damage,
but you cannot ensure success."
-- Tom DeMarco
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists