[6/6] drm/amd/display: Remove useless pcrtc pointer
diff mbox

Message ID 1507842911-16975-7-git-send-email-sunpeng.li@amd.com
State New
Headers show

Commit Message

Leo Oct. 12, 2017, 9:15 p.m. UTC
From: "Leo (Sunpeng) Li" <sunpeng.li@amd.com>

in amdgpu_dm_atomic_commit_tail. Just use crtc instead.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Alex Deucher Oct. 13, 2017, 4:32 p.m. UTC | #1
On Thu, Oct 12, 2017 at 5:15 PM,  <sunpeng.li@amd.com> wrote:
> From: "Leo (Sunpeng) Li" <sunpeng.li@amd.com>
>
> in amdgpu_dm_atomic_commit_tail. Just use crtc instead.
>
> Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 67222ff..f9b5769 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -4004,7 +4004,7 @@ void amdgpu_dm_atomic_commit_tail(
>         struct dm_atomic_state *dm_state;
>         uint32_t i, j;
>         uint32_t new_crtcs_count = 0;
> -       struct drm_crtc *crtc, *pcrtc;
> +       struct drm_crtc *crtc;
>         struct drm_crtc_state *old_crtc_state, *new_crtc_state;
>         struct amdgpu_crtc *new_crtcs[MAX_STREAMS];
>         struct dc_stream_state *new_stream = NULL;
> @@ -4200,11 +4200,11 @@ void amdgpu_dm_atomic_commit_tail(
>         }
>
>         /* update planes when needed per crtc*/
> -       for_each_new_crtc_in_state(state, pcrtc, new_crtc_state, j) {
> +       for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) {
>                 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
>
>                 if (dm_new_crtc_state->stream)
> -                       amdgpu_dm_commit_planes(state, dev, dm, pcrtc, &wait_for_vblank);
> +                       amdgpu_dm_commit_planes(state, dev, dm, crtc, &wait_for_vblank);
>         }
>
>
> --
> 2.7.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Patch
diff mbox

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 67222ff..f9b5769 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -4004,7 +4004,7 @@  void amdgpu_dm_atomic_commit_tail(
 	struct dm_atomic_state *dm_state;
 	uint32_t i, j;
 	uint32_t new_crtcs_count = 0;
-	struct drm_crtc *crtc, *pcrtc;
+	struct drm_crtc *crtc;
 	struct drm_crtc_state *old_crtc_state, *new_crtc_state;
 	struct amdgpu_crtc *new_crtcs[MAX_STREAMS];
 	struct dc_stream_state *new_stream = NULL;
@@ -4200,11 +4200,11 @@  void amdgpu_dm_atomic_commit_tail(
 	}
 
 	/* update planes when needed per crtc*/
-	for_each_new_crtc_in_state(state, pcrtc, new_crtc_state, j) {
+	for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) {
 		dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
 
 		if (dm_new_crtc_state->stream)
-			amdgpu_dm_commit_planes(state, dev, dm, pcrtc, &wait_for_vblank);
+			amdgpu_dm_commit_planes(state, dev, dm, crtc, &wait_for_vblank);
 	}