diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2011-02-02 22:16:25 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-02-06 07:17:45 -0500 |
commit | 554233a6e0e8557e8e81e54cc70628d101291122 (patch) | |
tree | 9cd7c8fe5dddbdd7255192468daa9cc9a48ea208 /fs/btrfs/inode.c | |
parent | 3c14874acc71180553fb5aba528e3cf57c5b958b (diff) |
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: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 36bc3f49ebf9..c9bc0afdbfc6 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2646,7 +2646,7 @@ int btrfs_unlink_inode(struct btrfs_trans_handle *trans, | |||
2646 | path = btrfs_alloc_path(); | 2646 | path = btrfs_alloc_path(); |
2647 | if (!path) { | 2647 | if (!path) { |
2648 | ret = -ENOMEM; | 2648 | ret = -ENOMEM; |
2649 | goto err; | 2649 | goto out; |
2650 | } | 2650 | } |
2651 | 2651 | ||
2652 | path->leave_spinning = 1; | 2652 | path->leave_spinning = 1; |