OSDN Git Service

drm/amd/display: Fix check for stream and plane
[tomoyo/tomoyo-test1.git] / drivers / gpu / drm / amd / display / dc / dcn32 / dcn32_resource_helpers.c
index 955f52e..ab918fe 100644 (file)
@@ -144,7 +144,7 @@ bool dcn32_all_pipes_have_stream_and_plane(struct dc *dc,
                struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i];
 
                if (!pipe->stream)
-                       continue;
+                       return false;
 
                if (!pipe->plane_state)
                        return false;