diff options
| author | Dave Airlie <airlied@redhat.com> | 2017-10-02 22:37:33 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-06 12:59:20 -0400 |
| commit | 4ee67c71b89948289eb5c55f1a19281be61178e5 (patch) | |
| tree | 790655626bfbed79a6f9d7cb88c5ce5c514c52ce | |
| parent | 48aa3ddfd535a8e80b1b46da8a13920d9de8e5c5 (diff) | |
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>
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 2 |
1 files changed, 0 insertions, 2 deletions
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 f170ae95529c..ff07105bfd99 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 @@ | |||
| 37 | static void construct(struct dc_context *ctx, struct dc_plane_state *plane_state) | 37 | static void construct(struct dc_context *ctx, struct dc_plane_state *plane_state) |
| 38 | { | 38 | { |
| 39 | plane_state->ctx = ctx; | 39 | plane_state->ctx = ctx; |
| 40 | memset(&plane_state->hdr_static_ctx, | ||
| 41 | 0, sizeof(struct dc_hdr_static_metadata)); | ||
| 42 | } | 40 | } |
| 43 | 41 | ||
| 44 | static void destruct(struct dc_plane_state *plane_state) | 42 | static void destruct(struct dc_plane_state *plane_state) |
