OSDN Git Service

drm/amd/display: Remove unnecessary casts in amdgpu_dm_helpers.c
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Sat, 24 Jun 2023 04:43:24 +0000 (10:13 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Jul 2023 17:51:47 +0000 (13:51 -0400)
commitd228419ffb78e572171a549a4ab994d84ec34dc8
treea257035bd51978ea3fe93031d20665c87e974fa0
parent7c62129b415adbab283e5bddc619a749d7fe3163
drm/amd/display: Remove unnecessary casts in amdgpu_dm_helpers.c

Fixes the following category of checkpatch complaints:

WARNING: unnecessary cast may hide bugs, see http://c-faq.com/malloc/mallocnocast.html
+               char *buf = (char *)kvcalloc(total, sizeof(char), GFP_KERNEL);

Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c