Fixes a sparse message about link_stream being assigned an int value of 0, instead of NULL.
Signed-off-by: Joshua Peisach <[email protected]> --- 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
