Skip to content

Commit

Permalink
coccinelle: misc: remove "complex return code" warnings
Browse files Browse the repository at this point in the history
This effectively reverts 932058a ("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>
  • Loading branch information
Johan Hovold authored and Michal Marek committed Oct 26, 2015
1 parent 5b16910 commit 1a617a8
Showing 1 changed file with 0 additions and 180 deletions.
180 changes: 0 additions & 180 deletions scripts/coccinelle/misc/simple_return.cocci

This file was deleted.

0 comments on commit 1a617a8

Please sign in to comment.