commit | cdddc28a0803a958993efc72388596493dcf74b6 | [log] [tgz] |
---|---|---|
author | Peter Senna Tschudin <peter.senna@gmail.com> | Sun Sep 22 20:44:13 2013 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Sep 25 16:48:45 2013 -0700 |
tree | e147ca8f26470be87e437991117d359d4708e9f4 | |
parent | 11f9c3218beeebdd86157949ccdfff1c9f82ff75 [diff] |
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>