Staging: crystalhd: Fix assignment of 0/1 to bool variables
authorPeter Senna Tschudin <peter.senna@gmail.com>
Sun, 22 Sep 2013 18:44:13 +0000 (20:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:48:45 +0000 (16:48 -0700)
commitcdddc28a0803a958993efc72388596493dcf74b6
treee147ca8f26470be87e437991117d359d4708e9f4
parent11f9c3218beeebdd86157949ccdfff1c9f82ff75
Staging: crystalhd: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/crystalhd/crystalhd_hw.c