btrfs: Cleanup some redundant codes in btrfs_log_inode()
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Mon, 18 Mar 2013 09:18:10 +0000 (09:18 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:20 +0000 (15:54 -0400)
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/tree-log.c

index ef96381569a4a1229b95f6b3470f232b3ebe8b0e..f728eeb3eda56b75a90bb75502825726e5364b3b 100644 (file)
@@ -3650,8 +3650,6 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
        bool fast_search = false;
        u64 ino = btrfs_ino(inode);
 
-       log = root->log_root;
-
        path = btrfs_alloc_path();
        if (!path)
                return -ENOMEM;