Selaa lähdekoodia

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 <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Dave Airlie 8 vuotta sitten
vanhempi
commit
4ee67c71b8
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      drivers/gpu/drm/amd/display/dc/core/dc_surface.c

+ 0 - 2
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)