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

From: Tomi Valkeinen
Date: Tue May 10 2011 - 08:16:17 EST


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 <ndevos@xxxxxxxxxx>

Thanks, I'll add this to the dss2 tree.

Tomi


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/