diff options
| author | 2013-09-22 20:44:10 +0200 | |
|---|---|---|
| committer | 2013-09-22 16:59:14 -0500 | |
| commit | 941247f910953d6b0649c81f6cb446110438afae (patch) | |
| tree | 479fef6994b097e216fd964f6f740a4e48b7a57c /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | Bluetooth: Add event mask page 2 setting support (diff) | |
| download | linux-dev-941247f910953d6b0649c81f6cb446110438afae.tar.xz linux-dev-941247f910953d6b0649c81f6cb446110438afae.zip | |
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 <peter.senna@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
