linux-kernel-mentees.lists.linuxfoundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] drm/amdgpu/vcn: Remove unused assignment in vcn_v4_0_stop
@ 2022-08-15  7:00 Khalid Masum
  2022-08-15 14:07 ` James Zhu via Linux-kernel-mentees
  2022-08-15 14:15 ` Dong, Ruijing via Linux-kernel-mentees
  0 siblings, 2 replies; 10+ messages in thread
From: Khalid Masum @ 2022-08-15  7:00 UTC (permalink / raw)
  To: amd-gfx, dri-devel, linux-kernel, linux-kernel-mentees
  Cc: Wan Jiabing, David Airlie, Pan Xinhui, Sonny Jiang,
	Daniel Vetter, Alex Deucher, Ruijing Dong, James Zhu, Leo Liu,
	Christian König

The value assigned from vcn_v4_0_stop_dbg_mode to r is overwritten
before it can be used. Remove this assignment.

Addresses-Coverity: 1504988 ("Unused value")
Fixes: 8da1170a16e4 ("drm/amdgpu: add VCN4 ip block support")
Signed-off-by: Khalid Masum <khalid.masum.92@gmail.com>
---
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 2 +-
 1 file changed, 1 insertion(+), 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 ca14c3ef742e..80b8a2c66b36 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
@@ -1154,7 +1154,7 @@ static int vcn_v4_0_stop(struct amdgpu_device *adev)
 		fw_shared->sq.queue_mode |= FW_QUEUE_DPG_HOLD_OFF;
 
 		if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) {
-			r = vcn_v4_0_stop_dpg_mode(adev, i);
+			vcn_v4_0_stop_dpg_mode(adev, i);
 			continue;
 		}
 
-- 
2.37.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15  7:00 [PATCH linux-next] drm/amdgpu/vcn: Remove unused assignment in vcn_v4_0_stop Khalid Masum
2022-08-15 14:07 ` James Zhu via Linux-kernel-mentees
2022-08-15 14:15 ` Dong, Ruijing via Linux-kernel-mentees
2022-08-15 15:11   ` Khalid Masum
2022-08-15 15:17     ` Dong, Ruijing via Linux-kernel-mentees
2022-08-15 15:53       ` Khalid Masum
2022-08-15 16:00         ` Dong, Ruijing via Linux-kernel-mentees
2022-08-15 18:32           ` Khalid Masum
2022-08-15 16:12     ` Greg KH
2022-08-15 17:01       ` Khalid Masum

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).