]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/btrfs/super.c
Btrfs: Use ERR_CAST helpers
[net-next-2.6.git] / fs / btrfs / super.c
index 65b62daa3f801da9caf8ff7f380f33b8e1e59b86..d7fb2733d028d16c15386323b648f910792e263c 100644 (file)
@@ -389,7 +389,7 @@ static struct dentry *get_default_root(struct super_block *sb,
 find_root:
        new_root = btrfs_read_fs_root_no_name(root->fs_info, &location);
        if (IS_ERR(new_root))
-               return ERR_PTR(PTR_ERR(new_root));
+               return ERR_CAST(new_root);
 
        if (btrfs_root_refs(&new_root->root_item) == 0)
                return ERR_PTR(-ENOENT);