aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJoe Perches <[email protected]>2014-10-13 15:51:59 -0700
committerLinus Torvalds <[email protected]>2014-10-14 02:18:15 +0200
commit840080a08492bd2bb3314077b672b59c88bbe0e6 (patch)
tree7af7c1f6fbe2218941ec74d9d1eccebe681d10d8 /tools/perf/scripts/python/event_analyzing_sample.py
parent66b47b4a9dad00e45c049d79966de9a3a1f4d337 (diff)
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]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions