Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • Documentation
  • CodingStyle
Find file BlameHistoryPermalink
  • Dan Carpenter's avatar
    Documentation/CodingStyle: allow multiple return statements per function · b57a0505
    Dan Carpenter authored Jul 03, 2013
    
    
    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: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Cc: Eduardo Valentin <eduardo.valentin@ti.com>
    Cc: Rob Landley <rob@landley.net>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    b57a0505
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7