Coccinelle: flag conditions with no effect
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 8 Oct 2016 15:51:45 +0000 (17:51 +0200)
committerMichal Marek <mmarek@suse.com>
Tue, 11 Oct 2016 07:57:17 +0000 (09:57 +0200)
commitc8990359d4b12f14656386526ddf904635076902
tree40be3d2b71d8e7b2156e7f8249f3a4104680b259
parent1e01892e7ad521a96760da0d791b42badf755d3f
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.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/coccinelle/misc/cond_no_effect.cocci [new file with mode: 0644]