From: Misono Tomohiro Date: Thu, 26 Jul 2018 01:22:58 +0000 (+0900) Subject: btrfs: backref: Use ERR_CAST to return error code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=afc6961ffd96ee7e2a86e70e9691a008eadf2926;p=linux.git btrfs: backref: Use ERR_CAST to return error code Use ERR_CAST() instead of void * to make meaning clear. Signed-off-by: Misono Tomohiro Reviewed-by: Nikolay Borisov Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 60f4afa8ecbc0..ae750b1574a25 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) {