]> git.karo-electronics.de Git - linux-beck.git/commit
coccinelle: replace 0/1 with false/true in functions returning bool
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Sun, 11 Aug 2013 21:05:12 +0000 (21:05 +0000)
committerMichal Marek <mmarek@suse.cz>
Tue, 13 Aug 2013 20:43:41 +0000 (22:43 +0200)
commit46b5c9b856e8bcb44d8570cc55c46d19ca2428ff
tree32f76c8658a3c855d48f9313f98a2636df9c67f9
parentc95182bf9bd2df55739b187df8e972cb6cbee895
coccinelle: replace 0/1 with false/true in functions returning bool

This semantic patch replaces "return {0,1};" with "return
{false,true};" in functions returning bool.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/misc/boolreturn.cocci [new file with mode: 0644]