diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 65b62daa3f80..d7fb2733d028 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -389,7 +389,7 @@ static struct dentry *get_default_root(struct super_block *sb, | |||
389 | find_root: | 389 | find_root: |
390 | new_root = btrfs_read_fs_root_no_name(root->fs_info, &location); | 390 | new_root = btrfs_read_fs_root_no_name(root->fs_info, &location); |
391 | if (IS_ERR(new_root)) | 391 | if (IS_ERR(new_root)) |
392 | return ERR_PTR(PTR_ERR(new_root)); | 392 | return ERR_CAST(new_root); |
393 | 393 | ||
394 | if (btrfs_root_refs(&new_root->root_item) == 0) | 394 | if (btrfs_root_refs(&new_root->root_item) == 0) |
395 | return ERR_PTR(-ENOENT); | 395 | return ERR_PTR(-ENOENT); |