summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorChristos Gkekas <chris.gekas@gmail.com>2017-09-09 15:29:34 +0100
committerDavid Sterba <dsterba@suse.com>2017-10-30 12:27:56 +0100
commitfa0d0888bda13bc96d99024cba40ae3a135de385 (patch)
treecc8e283123ee9e72f933653d54adfecfe96cf635 /fs/btrfs/root-tree.c
parent9ca2e97fa3c3216200afe35a3b111ec51cc796d2 (diff)
downloadlinux-stable-fa0d0888bda13bc96d99024cba40ae3a135de385.tar.gz
linux-stable-fa0d0888bda13bc96d99024cba40ae3a135de385.tar.bz2
linux-stable-fa0d0888bda13bc96d99024cba40ae3a135de385.zip
btrfs: Clean up dead code in root-tree
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>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index 95bcc3cce78f..3338407ef0f0 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -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)