[PATCH] drm/atomic: remove duplicated assignment of old_plane_state

2015-05-18 Thread Daniel Vetter
On Fri, May 15, 2015 at 04:12:27PM -0300, Gustavo Padovan wrote:
> From: Gustavo Padovan 
> 
> 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 

Applied to topic/drm-misc, thanks.
-Daniel

> ---
>  drivers/gpu/drm/drm_atomic_helper.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_atomic_helper.c 
> b/drivers/gpu/drm/drm_atomic_helper.c
> index 5d30592..c9af027 100644
> --- a/drivers/gpu/drm/drm_atomic_helper.c
> +++ b/drivers/gpu/drm/drm_atomic_helper.c
> @@ -1130,8 +1130,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.
>*/
> -- 
> 2.1.0
> 
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PATCH] drm/atomic: remove duplicated assignment of old_plane_state

2015-05-15 Thread Gustavo Padovan
From: Gustavo Padovan 

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 
---
 drivers/gpu/drm/drm_atomic_helper.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_atomic_helper.c 
b/drivers/gpu/drm/drm_atomic_helper.c
index 5d30592..c9af027 100644
--- a/drivers/gpu/drm/drm_atomic_helper.c
+++ b/drivers/gpu/drm/drm_atomic_helper.c
@@ -1130,8 +1130,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.
 */
-- 
2.1.0