OMAPDSS: DISPC: Fix assignment of 0/1 to bool variables
authorPeter Senna Tschudin <peter.senna@gmail.com>
Sun, 22 Sep 2013 18:44:11 +0000 (20:44 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 23 Sep 2013 07:34:30 +0000 (10:34 +0300)
commit62a83183c477759363b2228e6b64c17593d9e4be
treeb7941b3bb723db287d8f401a6b3df69feb102f8b
parent24586d8342ab27bc75e4560d71e98f3e5dc67d8e
OMAPDSS: DISPC: Fix assignment of 0/1 to bool variables

Convert 0 to false and 1 to true when assigning values to bool
variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2.

The simplified semantic patch that find this problem is as
follows (http://coccinelle.lip6.fr/):

@@
bool b;
@@
(
-b = 0
+b = false
|
-b = 1
+b = true
)

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c