From: Gustavo Padovan Date: Fri, 15 May 2015 19:12:27 +0000 (-0300) Subject: drm/atomic: remove duplicated assignment of old_plane_state X-Git-Tag: firefly_0821_release~176^2~1470^2~53^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=744b058827b3db9a4f6027522dd9c73a208c2d31;p=firefly-linux-kernel-4.4.55.git drm/atomic: remove duplicated assignment of old_plane_state old_plane_state is already assigned to old_state->plane_states[i] inside for_each_plane_in_state(). Here we remove an the extra assignment. Signed-off-by: Gustavo Padovan Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 1bcd700e3baa..dc67ff671917 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -1151,8 +1151,6 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev, if (!funcs) continue; - old_plane_state = old_state->plane_states[i]; - /* * Special-case disabling the plane if drivers support it. */