summaryrefslogtreecommitdiff
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorAneesh <aneesh.kumar@gmail.com>2007-07-11 10:03:27 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-07-11 10:03:27 -0400
commita1f396304fb7e5f18e4ea81c294415375f1c814c (patch)
treead36d38ff59d3421090c75846a2251d0bde3f248 /fs/btrfs/root-tree.c
parentec6b910fb330f29e169c9f502c3ac209515af8d1 (diff)
Btrfs: Some code cleanups
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index 271dd2b5c321..402f67821c14 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -135,8 +135,8 @@ int btrfs_find_dead_roots(struct btrfs_root *root)
if (btrfs_root_refs(ri) != 0)
goto next;
dead_root = btrfs_read_fs_root_no_radix(root->fs_info, &key);
- if (IS_ERR(root)) {
- ret = PTR_ERR(root);
+ if (IS_ERR(dead_root)) {
+ ret = PTR_ERR(dead_root);
goto err;
}
ret = btrfs_add_dead_root(dead_root,