amdgpu/dc: don't memset after kzalloc.
Subsystems (3)
PATCH 1/1 amdgpu/dc: don't memset after kzalloc.
From: Dave Airlie <[email protected]>
We allocate this struct zeroed, so don't need to memset in the constructor.
Signed-off-by Dave Airlie <[email protected]>
--- drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_surface.c +0 -2
@@ -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)
Signature · 6 lines
2.9.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20171003023733.4996-1-airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Harry Wentland
Reviewed-byQuoted 6 lines · Dave Airlie
From: Dave Airlie <[email protected]>
We allocate this struct zeroed, so don't need to memset in the constructor.
Signed-off-by Dave Airlie <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 10 lines
--- drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc_surface.c +0
-0
drivers/gpu/drm/amd/display/dc/core/dc_surface.c line 42
Quoted 8 lines
drivers/gpu/drm/amd/display/dc/core/dc_surface.c +0
-2@@ -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)
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx