btrfs: simplify cleanup after error in btrfs_create_tree
authorPeng Hao <flyingpeng@tencent.com>
Fri, 7 Oct 2022 16:33:35 +0000 (18:33 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:36 +0000 (18:00 +0100)
commitc1b078545e64da7a2b67b74b9d12813b5dd2a529
tree354c975ac863ab235fcf3e27c318fdc85c27dca3
parente5e886bad9e9e87b767ade3884faec1cfdec9b43
btrfs: simplify cleanup after error in btrfs_create_tree

Since leaf is already NULL, and no other branch will go to fail_unlock,
the fail_unlock label is useless and can be removed

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c