]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation/CodingStyle: allow multiple return statements per function
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Jul 2013 22:08:08 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:01 +0000 (16:08 -0700)
commit8481064b070759fd292fb84ddc06b0b4d38db5db
tree36dc1bdf810168a3509861fd3a0c61ca562ec272
parentac2eae26b87ef8bb50ddcc4a9f3ad97f944774b7
Documentation/CodingStyle: allow multiple return statements per function

A surprising number of newbies interpret this section to mean that only
one return statement is allowed per function.  Part of the problem is that
the "one return statement per function" rule is an actual style guideline
that people are used to from other projects.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Eduardo Valentin <eduardo.valentin@ti.com>
Cc: Rob Landley <rob@landley.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/CodingStyle