public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] amdgpu/display/dc/link: fix sparse warning on assigning int as nullptr
@ 2026-02-25 23:46 Joshua Peisach
  2026-02-27  2:41 ` Claude review: " Claude Code Review Bot
  2026-02-27  2:41 ` Claude Code Review Bot
  0 siblings, 2 replies; 3+ messages in thread
From: Joshua Peisach @ 2026-02-25 23:46 UTC (permalink / raw)
  To: Harry Wentland, Leo Li, Rodrigo Siqueira, Alex Deucher,
	Christian König, David Airlie, Simona Vetter, amd-gfx,
	dri-devel
  Cc: Joshua Peisach

Fixes a sparse message about link_stream being assigned an int
value of 0, instead of NULL.

Signed-off-by: Joshua Peisach <jpeisach@ubuntu.com>
---
 drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c b/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
index 693d852b1..918993a3c 100644
--- a/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
+++ b/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
@@ -957,7 +957,7 @@ void dp_set_preferred_link_settings(struct dc *dc,
 {
 	int i;
 	struct pipe_ctx *pipe;
-	struct dc_stream_state *link_stream = 0;
+	struct dc_stream_state *link_stream = NULL;
 	struct dc_link_settings store_settings = *link_setting;
 
 	link->preferred_link_setting = store_settings;
-- 
2.51.0


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

end of thread, other threads:[~2026-02-27  2:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25 23:46 [PATCH] amdgpu/display/dc/link: fix sparse warning on assigning int as nullptr Joshua Peisach
2026-02-27  2:41 ` Claude review: " Claude Code Review Bot
2026-02-27  2:41 ` Claude Code Review Bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox