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>
This commit is contained in:
committed by
Alex Deucher
parent
7c62129b41
commit
d228419ffb
@@ -426,7 +426,7 @@ void dm_dtn_log_append_v(struct dc_context *ctx,
|
||||
total = log_ctx->pos + n + 1;
|
||||
|
||||
if (total > log_ctx->size) {
|
||||
char *buf = (char *)kvcalloc(total, sizeof(char), GFP_KERNEL);
|
||||
char *buf = kvcalloc(total, sizeof(char), GFP_KERNEL);
|
||||
|
||||
if (buf) {
|
||||
memcpy(buf, log_ctx->buf, log_ctx->pos);
|
||||
|
||||
Reference in New Issue
Block a user