From: Peter Senna Tschudin Date: Sun, 22 Sep 2013 18:44:10 +0000 (+0200) Subject: Bluetooth: Fix assignment of 0/1 to bool variables X-Git-Tag: v3.13-rc1~105^2~225^2~24^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=941247f910953d6b0649c81f6cb446110438afae;p=pandora-kernel.git Bluetooth: 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed