drm/amd/display: remove unused variable 'dc'
GCC reports the following warning with W=1: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:70:13: warning: variable ‘dc’ set but not used [-Wunused-but-set-variable] 70 | struct dc *dc = NULL; | ^~ This variable is not used in function, this commit remove it to fix the warning. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
85019b19d4
commit
23549470ea
|
@ -67,14 +67,12 @@ bool amdgpu_dm_link_setup_psr(struct dc_stream_state *stream)
|
||||||
struct dc_link *link = NULL;
|
struct dc_link *link = NULL;
|
||||||
struct psr_config psr_config = {0};
|
struct psr_config psr_config = {0};
|
||||||
struct psr_context psr_context = {0};
|
struct psr_context psr_context = {0};
|
||||||
struct dc *dc = NULL;
|
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
if (stream == NULL)
|
if (stream == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
link = stream->link;
|
link = stream->link;
|
||||||
dc = link->ctx->dc;
|
|
||||||
|
|
||||||
psr_config.psr_version = link->dpcd_caps.psr_caps.psr_version;
|
psr_config.psr_version = link->dpcd_caps.psr_caps.psr_version;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue