Thread (8 messages) 8 messages, 4 authors, 2011-05-10

Re: [PATCH V2] omap2/omapfb: make DBG() more resistant in if-else

From: Tomi Valkeinen <hidden>
Date: 2011-05-10 12:16:15
Also in: linux-omap, lkml

On Tue, 2011-05-10 at 12:07 +0100, Niels de Vos wrote:
When DBG() is used in a simple if-else, the resulting code path
currently depends on the definition of DBG(). Inserting the statement in
a "do { ... } while (0)" prevents this possible misuse.

Signed-off-by: Niels de Vos <redacted>
Thanks, I'll add this to the dss2 tree.

 Tomi

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help