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

Commit 288db882 authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina
Browse files

GPU DRM: Remove unnecessary casts of void ptr returning alloc function return values



The [vk][cmz]alloc(_node) family of functions return void pointers which
it's completely unnecessary/pointless to cast to other pointer types since
that happens implicitly.

This patch removes such casts from drivers/gpu/drm/

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c5e0591a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -59,9 +59,7 @@ drm_sman_init(struct drm_sman * sman, unsigned int num_managers,
{
	int ret = 0;

	sman->mm = (struct drm_sman_mm *) kcalloc(num_managers,
						  sizeof(*sman->mm),
						  GFP_KERNEL);
	sman->mm = kcalloc(num_managers, sizeof(*sman->mm), GFP_KERNEL);
	if (!sman->mm) {
		ret = -ENOMEM;
		goto out;