amdgpu/dc: don't memset after kzalloc.
authorDave Airlie <airlied@redhat.com>
Tue, 3 Oct 2017 02:37:33 +0000 (12:37 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 16:59:20 +0000 (12:59 -0400)
We allocate this struct zeroed, so don't need to memset in the
constructor.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_surface.c

index f170ae9..ff07105 100644 (file)
@@ -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)