Commit 03e4173b authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Remove unused scratch_val_ctx

Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 09e2d07f
...@@ -411,8 +411,6 @@ static void destruct(struct core_dc *dc) ...@@ -411,8 +411,6 @@ static void destruct(struct core_dc *dc)
dc->current_context = NULL; dc->current_context = NULL;
dm_free(dc->temp_flip_context); dm_free(dc->temp_flip_context);
dc->temp_flip_context = NULL; dc->temp_flip_context = NULL;
dm_free(dc->scratch_val_ctx);
dc->scratch_val_ctx = NULL;
dm_free(dc->ctx); dm_free(dc->ctx);
dc->ctx = NULL; dc->ctx = NULL;
...@@ -432,7 +430,6 @@ static bool construct(struct core_dc *dc, ...@@ -432,7 +430,6 @@ static bool construct(struct core_dc *dc,
dc->current_context = dm_alloc(sizeof(*dc->current_context)); dc->current_context = dm_alloc(sizeof(*dc->current_context));
dc->temp_flip_context = dm_alloc(sizeof(*dc->temp_flip_context)); dc->temp_flip_context = dm_alloc(sizeof(*dc->temp_flip_context));
dc->scratch_val_ctx = dm_alloc(sizeof(*dc->scratch_val_ctx));
if (!dc->current_context || !dc->temp_flip_context) { if (!dc->current_context || !dc->temp_flip_context) {
dm_error("%s: failed to create validate ctx\n", __func__); dm_error("%s: failed to create validate ctx\n", __func__);
......
...@@ -23,7 +23,6 @@ struct core_dc { ...@@ -23,7 +23,6 @@ struct core_dc {
struct validate_context *current_context; struct validate_context *current_context;
struct validate_context *temp_flip_context; struct validate_context *temp_flip_context;
struct validate_context *scratch_val_ctx;
struct resource_pool *res_pool; struct resource_pool *res_pool;
/* Display Engine Clock levels */ /* Display Engine Clock levels */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment