aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorTobin C. Harding <[email protected]>2017-04-27 11:25:14 +1000
committerGreg Kroah-Hartman <[email protected]>2017-04-28 11:45:49 +0200
commit8cd1dbe1db97ad74c5265e09c3490eeb7986f623 (patch)
treeedee85a9f4ce568501fc800698f28e493038fdda /tools/perf/scripts/python/bin/stackcollapse-report
parent69f3fecc49cabaadf4839dda4227427fc15b4c7e (diff)
staging: ks7010: move skb null check near allocation
Currently, after allocating an sk_buff, driver fills the sk_buff within code block guarded by a NULL check on the sk_buff. If a NULL check is done immediately after the allocation, and code returns on error, then the subsequent code need not be guarded and the level of indentation may be reduced. This aids the readability of the code and makes explicit the error path. Check for NULL directly after allocating the sk_buff, return if allocation fails. Reduce indentation of subsequent code. Do not change the program logic. Signed-off-by: Tobin C. Harding <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions