Skip to contentSkip to conversation

drm/rockchip: remove unused variable 'old_state'

PATCH New Bixuan Cui 1 participant 1 message Mar 19, 2021

Subsystems (5)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 drm/rockchip: remove unused variable 'old_state'

Fix the warning:

drivers/gpu/drm/rockchip/rockchip_drm_vop.c:882:26:warning: unused variable ‘old_state’ [-Wunused-variable]
struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state,

---
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +0 -2
index 81c70d7a0471..64469439ddf2 100644
@@ -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 · 1 line
2.17.1