diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-06-20 18:43:12 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:12:39 +0200 |
commit | 7b4284de93c51b1d78699bf06bccee892699aa4e (patch) | |
tree | 06a6eac388d3c188f0c17f4bf4bda39b52a55162 /lib/fdt_sw.c | |
parent | 43794446548730ac8461be30bbe47d5d027d1d16 (diff) | |
download | linux-7b4284de93c51b1d78699bf06bccee892699aa4e.tar.bz2 |
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 <nborisov@suse.com>
Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib/fdt_sw.c')
0 files changed, 0 insertions, 0 deletions