Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afc6961f authored by Misono Tomohiro's avatar Misono Tomohiro Committed by David Sterba
Browse files

btrfs: backref: Use ERR_CAST to return error code



Use ERR_CAST() instead of void * to make meaning clear.

Signed-off-by: default avatarMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 5b7d687a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {