]> git.karo-electronics.de Git - karo-tx-linux.git/commit
coccinelle: misc: semantic patch to delete overly complex return code processing
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 23 Aug 2014 05:34:45 +0000 (07:34 +0200)
committerMichal Marek <mmarek@suse.cz>
Fri, 26 Sep 2014 11:42:31 +0000 (13:42 +0200)
commit932058a5d5f9fd919b90aaa2275d54b37340d585
treec23f98f5f4d8fd69401db4092fc067336d944b82
parent22739edfc563fa42f02a2f7323fd352061ef32b3
coccinelle: misc: semantic patch to delete overly complex return code processing

This semantic patch simplifies cases where the effect of the processing of
a function call's return code is just to return the result of the function
directly.  It may also delete a local return flag variable, if this is no
longer used.

This was proposed by Uwe Kleine-König.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/misc/simple_return.cocci [new file with mode: 0644]