Re: [PATCH] drm/amdgpu: Drop unused variable and statement

2019-10-02 Thread Alex Deucher
On Wed, Oct 2, 2019 at 3:19 AM Austin Kim wrote: > > Even though 'smu8_smu' is declared, it is not used after below statement. > >smu8_smu = hwmgr->smu_backend; > > So 'unused variable' could be safely removed > to stop warning message as below: > >drivers/gpu/drm/amd/amdgpu/../powerplay/s

[PATCH] drm/amdgpu: Drop unused variable and statement

2019-10-02 Thread Austin Kim
Even though 'smu8_smu' is declared, it is not used after below statement. smu8_smu = hwmgr->smu_backend; So 'unused variable' could be safely removed to stop warning message as below: drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu8_smumgr.c:180:22: warning: variable ‘smu8_smu’ set b