checkpatch: switch indent allow plain return
commit1bdab9e5881fde3bf66528db5b91477ce4b35b3b
authorAndy Whitcroft <apw@shadowen.org>
Thu, 16 Oct 2008 05:02:17 +0000 (15 22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:34 +0000 (16 11:21 -0700)
tree286e57468f42dd1acb83d810d049598b7e3978a6
parent14b111c158116f02c1c862397075e28ac12d65d6
checkpatch: switch indent allow plain return

It is a common and sane idiom to allow a single return on the end of a
case statement:

switch (...) {
case foo: return bar;
}

Add an exception for this.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl