amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Remove duplicated argument in vcn_v4_0
@ 2022-05-10  2:49 Wan Jiabing
  2022-05-10 15:07 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Wan Jiabing @ 2022-05-10  2:49 UTC (permalink / raw)
  To: Alex Deucher, Christian König, Pan, Xinhui, David Airlie,
	Daniel Vetter, James Zhu, Wan Jiabing, Leo Liu, amd-gfx,
	dri-devel, linux-kernel

Fix following coccicheck warning:
./drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c:724:4-36: duplicated argument to & or |

Remove duplicated UVD_SUVD_CGC_GATE__SRE_H264_MASK.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 drivers/Gap/drm/amd/amdgpu/vcn_v4_0.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
index c37dbac9d96b..9119e966ffff 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
@@ -722,7 +722,6 @@ static void vcn_v4_0_disable_clock_gating(struct amdgpu_device *adev, int inst)
 		| UVD_SUVD_CGC_GATE__SCM_MASK
 		| UVD_SUVD_CGC_GATE__SDB_MASK
 		| UVD_SUVD_CGC_GATE__SRE_H264_MASK
-		| UVD_SUVD_CGC_GATE__SRE_H264_MASK
 		| UVD_SUVD_CGC_GATE__SRE_HEVC_MASK
 		| UVD_SUVD_CGC_GATE__SIT_H264_MASK
 		| UVD_SUVD_CGC_GATE__SIT_HEVC_MASK
-- 
2.36.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amdgpu: Remove duplicated argument in vcn_v4_0
  2022-05-10  2:49 [PATCH] drm/amdgpu: Remove duplicated argument in vcn_v4_0 Wan Jiabing
@ 2022-05-10 15:07 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2022-05-10 15:07 UTC (permalink / raw)
  To: Wan Jiabing
  Cc: David Airlie, Pan, Xinhui, LKML, amd-gfx list,
	Maling list - DRI developers, Daniel Vetter, Alex Deucher,
	James Zhu, Leo Liu, Christian König

Applied.  Thanks!

Alex

On Mon, May 9, 2022 at 10:50 PM Wan Jiabing <wanjiabing@vivo.com> wrote:
>
> Fix following coccicheck warning:
> ./drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c:724:4-36: duplicated argument to & or |
>
> Remove duplicated UVD_SUVD_CGC_GATE__SRE_H264_MASK.
>
> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
> ---
>  drivers/Gap/drm/amd/amdgpu/vcn_v4_0.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
> index c37dbac9d96b..9119e966ffff 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
> @@ -722,7 +722,6 @@ static void vcn_v4_0_disable_clock_gating(struct amdgpu_device *adev, int inst)
>                 | UVD_SUVD_CGC_GATE__SCM_MASK
>                 | UVD_SUVD_CGC_GATE__SDB_MASK
>                 | UVD_SUVD_CGC_GATE__SRE_H264_MASK
> -               | UVD_SUVD_CGC_GATE__SRE_H264_MASK
>                 | UVD_SUVD_CGC_GATE__SRE_HEVC_MASK
>                 | UVD_SUVD_CGC_GATE__SIT_H264_MASK
>                 | UVD_SUVD_CGC_GATE__SIT_HEVC_MASK
> --
> 2.36.0
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-10 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10  2:49 [PATCH] drm/amdgpu: Remove duplicated argument in vcn_v4_0 Wan Jiabing
2022-05-10 15:07 ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).