[PATCH] Add section on function return values to CodingStyle
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 29 Sep 2006 09:01:21 +0000 (02:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:22 +0000 (09:18 -0700)
commitc16a02d6f5fcfe05dc6fd40aa80a8e1d055300db
tree9335cbe024a12723395a92f5aeca7111700a0766
parentfdf8cb0909b531f9ae8f9b9d7e4eb35ba3505f07
[PATCH] Add section on function return values to CodingStyle

This patch (as776) adds a new chapter to Documentation/CodingStyle,
explaining the circumstances under which a function should return 0 for
failure and non-zero for success as opposed to a negative error code for
failure and 0 for success.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/CodingStyle