coccinelle: misc: remove "complex return code" warnings
authorJohan Hovold <johan@kernel.org>
Wed, 30 Sep 2015 22:37:27 +0000 (18:37 -0400)
committerMichal Marek <mmarek@suse.com>
Mon, 26 Oct 2015 21:10:01 +0000 (22:10 +0100)
commit1a617a8475e8509255cc77f88c148095f4cc05ba
tree804b6ed6c20b8ae52defe2c8d93397dba22dda11
parent5b169108571e0ada22f9b9f5448a2e4fefb5faa6
coccinelle: misc: remove "complex return code" warnings

This effectively reverts 932058a5d5f9 ("coccinelle: misc: semantic patch
to delete overly complex return code processing").

There can be both symmetry and readability reasons for not wanting to do
the final function call as part of the return statement and to maintain
a clear separation of success and error paths.

Since this is in no way mandated by the coding standard, let's just
remove this semantic patch to avoid having "clean up" patches being
posted over and over in response to these Coccinelle warnings.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/misc/simple_return.cocci [deleted file]