Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 554233a6 authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by Chris Mason
Browse files

btrfs: cleanup error handling in btrfs_unlink_inode()



When btrfs_alloc_path() fails, btrfs_free_path() need not be called.
Therefore, it changes the branch ahead.

Signed-off-by: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 3c14874a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2646,7 +2646,7 @@ int btrfs_unlink_inode(struct btrfs_trans_handle *trans,
	path = btrfs_alloc_path();
	if (!path) {
		ret = -ENOMEM;
		goto err;
		goto out;
	}

	path->leave_spinning = 1;