From: Dave Airlie Date: Tue, 3 Oct 2017 02:37:33 +0000 (+1000) Subject: amdgpu/dc: don't memset after kzalloc. X-Git-Tag: v4.15-rc1~56^2~23^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ee67c71b89948289eb5c55f1a19281be61178e5;p=thirdparty%2Fkernel%2Flinux.git amdgpu/dc: don't memset after kzalloc. We allocate this struct zeroed, so don't need to memset in the constructor. Signed-off-by: Dave Airlie Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c index f170ae95529ce..ff07105bfd99f 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c @@ -37,8 +37,6 @@ static void construct(struct dc_context *ctx, struct dc_plane_state *plane_state) { plane_state->ctx = ctx; - memset(&plane_state->hdr_static_ctx, - 0, sizeof(struct dc_hdr_static_metadata)); } static void destruct(struct dc_plane_state *plane_state)