diff options
author | Aneesh <aneesh.kumar@gmail.com> | 2007-07-11 16:03:27 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-07-11 16:03:27 +0200 |
commit | a1f396304fb7e5f18e4ea81c294415375f1c814c (patch) | |
tree | ad36d38ff59d3421090c75846a2251d0bde3f248 /fs/btrfs/root-tree.c | |
parent | Btrfs: trivial include fixups (diff) | |
download | linux-a1f396304fb7e5f18e4ea81c294415375f1c814c.tar.xz linux-a1f396304fb7e5f18e4ea81c294415375f1c814c.zip |
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.c | 4 |
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, |