drm/amd/display: Remove unused variable 'abo'
Subsystems (3)
PATCH 1/1 drm/amd/display: Remove unused variable 'abo'
From: "Souptick Joarder (HPE)" <[email protected]>
Kernel test robot throws below warning -> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9143:27:
warning: variable 'abo' set but not used [-Wunused-but-set-variable]
Remove the unused variable.
Reported-by Kernel test robot <[email protected]>
Signed-off-by Souptick Joarder (HPE) <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -2
@@ -9136,7 +9136,6 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,to_dm_crtc_state (drm_atomic_get_old_crtc_state (state, pcrtc));int planes_count =0 , vpos, hpos;unsigned long flags; -struct amdgpu_bo *abo;uint32_t target_vblank, last_flip_vblank;bool vrr_active =amdgpu_dm_vrr_active (acrtc_state);bool pflip_present = false;
@@ -9208,7 +9207,6 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,continue ; } - abo =gem_to_amdgpu_bo (fb->obj[0 ]); fill_dc_plane_info_and_addr( dm->adev, new_plane_state, afb->tiling_flags,
Signature · 1 line
2.25.1
Reviewed-by Simon Ser <[email protected]>
I sent out the same patch last week. I just pushed it to drm-misc-next.
Thanks!
Alex
Quoted 2 lines · Simon Ser
Reviewed-by Simon Ser <[email protected]>