diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 60f4afa8ecbc0273c855e365437b09638d16e93c..ae750b1574a25973978f30ed9398c624e7893bc0 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -2225,7 +2225,7 @@ struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, fspath = init_data_container(total_bytes); if (IS_ERR(fspath)) - return (void *)fspath; + return ERR_CAST(fspath); ifp = kmalloc(sizeof(*ifp), GFP_KERNEL); if (!ifp) {