Skip to contentSkip to conversation

amdgpu/display/dc/link: fix sparse warning on assigning int as nullptr

PATCH New Joshua Peisach 1 participant 1 message Feb 25

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amdgpu/display/dc/link: fix sparse warning on assigning int as nullptr

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

---
 drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c +1 -1
index 693d852b1..918993a3c 100644
@@ -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;
Signature · 1 line
2.51.0