]> rtime.felk.cvut.cz Git - linux-imx.git/commit
OMAP: DSS2: OMAPFB: make DBG() more resistant in if-else constructions
authorNiels de Vos <ndevos@redhat.com>
Tue, 10 May 2011 11:07:33 +0000 (12:07 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 11 May 2011 11:20:54 +0000 (14:20 +0300)
commit41b21aebe6a9c06e0b906f14bcab7c49b9b72d7a
treee8532c1a15e7d861497901318c79f89d1d3562c5
parent0d548a277c8ce29712161995985bb67cd1c35ff7
OMAP: DSS2: OMAPFB: make DBG() more resistant in if-else constructions

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@redhat.com>
[tomi.valkeinen@ti.com: changed the title of the commit msg]
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/omapfb/omapfb.h