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

Commit 4ee67c71 authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher
Browse files

amdgpu/dc: don't memset after kzalloc.



We allocate this struct zeroed, so don't need to memset in the
constructor.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 48aa3ddf
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -37,8 +37,6 @@
static void construct(struct dc_context *ctx, struct dc_plane_state *plane_state)
static void construct(struct dc_context *ctx, struct dc_plane_state *plane_state)
{
{
	plane_state->ctx = ctx;
	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)
static void destruct(struct dc_plane_state *plane_state)