UPSTREAM: Coccinelle: Add misc/boolconv.cocci
authorAndrew F. Davis <afd@ti.com>
Mon, 17 Oct 2016 16:52:24 +0000 (11:52 -0500)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 12 Jul 2017 13:17:10 +0000 (21:17 +0800)
commitd274d003e309cc7c948356c53a030a9966931a94
tree83203b6d979f3090f174ffe7fb02cd4e34e1f445
parent38ceb6a5d24206350a2844e3ea92bf2c81803d13
UPSTREAM: Coccinelle: Add misc/boolconv.cocci

Add a script to check for unneeded conversions to bool.

Change-Id: I881d423eb72595b11a861eaf01c0c8eb8f262e05
Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 75238b9e6aadca6d9255d4b385e026385e78bb15)
scripts/coccinelle/misc/boolconv.cocci [new file with mode: 0644]