aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2018-06-20 18:43:12 +0300
committerDavid Sterba <[email protected]>2018-08-06 13:12:39 +0200
commit7b4284de93c51b1d78699bf06bccee892699aa4e (patch)
tree06a6eac388d3c188f0c17f4bf4bda39b52a55162 /tools/perf/scripts
parent43794446548730ac8461be30bbe47d5d027d1d16 (diff)
btrfs: Streamline memory allocation failure handling in btrfs_add_delayed_tree_ref
Currently the function uses 2 goto labels to properly handle allocation failures. This could be simplified by simply re-arranging the code so that allocations are the in the beginning of the function. This allows to use simple return statements. No functional changes. Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: Su Yue <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions