UPSTREAM: Coccinelle: flag conditions with no effect
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 8 Oct 2016 15:51:45 +0000 (17:51 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 12 Jul 2017 13:17:10 +0000 (21:17 +0800)
commit38ceb6a5d24206350a2844e3ea92bf2c81803d13
tree192f7418d885e1f48e8b1bb28c55337270178628
parent907e4f6c97b0a53c279ec33eb09eb8836e3cb47b
UPSTREAM: Coccinelle: flag conditions with no effect

Report code constructs where the if and else branch are functionally
identical. In cases where this is intended it really should be
documented - most reported cases probably are bugs.

Change-Id: I81c863f2a744d26dd1f0cd0b621580f73d0c70d5
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit c8990359d4b12f14656386526ddf904635076902)
scripts/coccinelle/misc/cond_no_effect.cocci [new file with mode: 0644]