]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Documentation/CodingStyle: allow multiple return statements per function
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Jun 2013 00:08:12 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:36 +0000 (17:27 +1000)
commitd7ef044fd0c4db795a990831746fbd58f7f6bbb3
treefcf40a832f334e7f7d6200c9535496637d6e53c5
parent3e594557489ff064ce7ee01d84d8ad120c9e12d7
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>
Documentation/CodingStyle