The btrfs_release_path() is just useless as path is only used in error handling.

Signed-off-by: Liu Bo <bo....@linux.alibaba.com>
---
 fs/btrfs/inode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index eba61bcb9bb3..5680e9c462a3 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4148,7 +4148,6 @@ static int btrfs_unlink_subvol(struct btrfs_trans_handle 
*trans,
                btrfs_release_path(path);
                index = key.offset;
        }
-       btrfs_release_path(path);
 
        ret = btrfs_delete_delayed_dir_index(trans, fs_info, BTRFS_I(dir), 
index);
        if (ret) {
-- 
1.8.3.1

Reply via email to