Re: [PATCH -next] drm/amd/display: Fix gcc unused variable warning

2021-06-18 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Jun 17, 2021 at 2:43 PM Harry Wentland wrote: > > On 2021-06-16 10:31 p.m., Pu Lehui wrote: > > GCC reports the following warning with W=1: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:3635:17: > > warning: > > variable ‘status’ set but not u

Re: [PATCH -next] drm/amd/display: Fix gcc unused variable warning

2021-06-17 Thread Harry Wentland
On 2021-06-16 10:31 p.m., Pu Lehui wrote: > GCC reports the following warning with W=1: > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:3635:17: > warning: > variable ‘status’ set but not used [-Wunused-but-set-variable] > 3635 | enum dc_status status = DC_ERROR_UNEXPECTED; >

[PATCH -next] drm/amd/display: Fix gcc unused variable warning

2021-06-16 Thread Pu Lehui
GCC reports the following warning with W=1: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:3635:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] 3635 | enum dc_status status = DC_ERROR_UNEXPECTED; | ^~ The variable should be us