[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1301082788.14261.204.camel@gandalf.stny.rr.com>
Date: Fri, 25 Mar 2011 15:53:08 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>, mingo@...hat.com,
hpa@...or.com, linux-kernel@...r.kernel.org,
dvhart@...ux.intel.com, peterz@...radead.org,
akpm@...ux-foundation.org, srostedt@...hat.com, tglx@...utronix.de,
laijs@...fujitsu.com, mingo@...e.hu,
linux-tip-commits@...r.kernel.org
Subject: Re: [tip:core/urgent] WARN_ON_SMP(): Allow use in if() statements
on UP
On Fri, 2011-03-25 at 21:47 +0200, Alexey Dobriyan wrote:
> I always thought if (WARN_ON(x)) is confusing and should be banned.
I think that's the preferred method (I use it all the time).
if (WARN_ON(blah))
goto fail;
Better than:
if (x) {
WARN_ON(1);
goto fail;
}
-- Steve
--
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