OSDN Git Service

btrfs: Clean up dead code in root-tree
authorChristos Gkekas <chris.gekas@gmail.com>
Sat, 9 Sep 2017 14:29:34 +0000 (15:29 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:56 +0000 (12:27 +0100)
The value of variable 'can_recover' is never used after being set, thus
it should be removed, as it was never used since the first commit
68a7342c51c95042 ("Btrfs: cleanup orphaned root orphan item").

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/root-tree.c

index 95bcc3c..3338407 100644 (file)
@@ -226,10 +226,6 @@ int btrfs_find_orphan_roots(struct btrfs_fs_info *fs_info)
        struct btrfs_root *root;
        int err = 0;
        int ret;
-       bool can_recover = true;
-
-       if (sb_rdonly(fs_info->sb))
-               can_recover = false;
 
        path = btrfs_alloc_path();
        if (!path)