Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpatch: add exception to return then else test
Add an exception to the return before else warning when the line following it is also a return like: if (foo) return bar; else return baz; This form of a test then return is at least as readable as if (foo) return bar; return baz; so don't emit a warning on the first form. Signed-off-by: Joe Perches <[email protected]> Reported-by: Al Viro <[email protected]> Cc: Elshad Mustafayev <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information