From: Niels de Vos Date: Tue, 10 May 2011 11:07:33 +0000 (+0100) Subject: OMAP: DSS2: OMAPFB: make DBG() more resistant in if-else constructions X-Git-Tag: v3.0-rc1~166^2~20^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41b21aebe6a9c06e0b906f14bcab7c49b9b72d7a;p=pandora-kernel.git 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 [tomi.valkeinen@ti.com: changed the title of the commit msg] Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed