drm/rockchip: Remove unused variable
Subsystems (4)
PATCH 1/1 drm/rockchip: Remove unused variable
Commit 977697e20b3d ("drm/atomic: Pass the full state to planes atomic disable and update") added the old_state variable instead of what used to be a parameter, but it also removed the sole user of that variable in the vop_plane_atomic_update function leading to an usused variable. Remove it.
--- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +0 -2
@@ -879,8 +879,6 @@ static void vop_plane_atomic_disable(struct drm_plane *plane,static void vop_plane_atomic_update (struct drm_plane *plane,struct drm_atomic_state *state) { -struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, - plane);struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);struct drm_crtc *crtc = new_state->crtc;
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Maxime,
Thank you for the patch.
Quoted 9 lines · Maxime Ripard
Commit
977697e20b3d("drm/atomic: Pass the full state to planes atomic disable and update") added theold_statevariable instead of what used to be a parameter, but it also removed the sole user of that variable in thevop_plane_atomic_updatefunction leading to an usused variable. Remove it.Fixes 977697e20b3d ("drm/atomic: Pass the full state to planes atomic disable and update")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/rockchip/rockchip_drm_vop.c +0
-2@@ -879,8 +879,6 @@ static void vop_plane_atomic_disable(struct drm_plane *plane,static void vop_plane_atomic_update (struct drm_plane *plane,struct drm_atomic_state *state) { -struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, - plane);struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);struct drm_crtc *crtc = new_state->crtc;
Signature · 7 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Laurent Pinchart
Hi Maxime,
Thank you for the patch.
Quoted 6 lines · Maxime Ripard
Commit
977697e20b3d("drm/atomic: Pass the full state to planes atomic disable and update") added theold_statevariable instead of what used to be a parameter, but it also removed the sole user of that variable in thevop_plane_atomic_updatefunction leading to an usused variable. Remove it.
Quoted 5 lines
Quoted 3 lines
Fixes 977697e20b3d ("drm/atomic: Pass the full state to planes atomic disable and update")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Maxime Ripard <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>
Applie,d thanks for your review
Maxime
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel