提交 d596e5d0 编写于 作者: Y Yongqiang Sun 提交者: Alex Deucher

drm/amd/display: Fixed incorrect return value for validaton

Signed-off-by: NYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 4f4ee686
...@@ -1723,10 +1723,11 @@ enum dc_status dc_validate_global_state( ...@@ -1723,10 +1723,11 @@ enum dc_status dc_validate_global_state(
enum dc_status result = DC_ERROR_UNEXPECTED; enum dc_status result = DC_ERROR_UNEXPECTED;
int i, j; int i, j;
if (dc->res_pool->funcs->validate_global && if (dc->res_pool->funcs->validate_global) {
dc->res_pool->funcs->validate_global( result = dc->res_pool->funcs->validate_global(dc, new_ctx);
dc, new_ctx) != DC_OK) if (result != DC_OK)
return false; return result;
}
for (i = 0; new_ctx && i < new_ctx->stream_count; i++) { for (i = 0; new_ctx && i < new_ctx->stream_count; i++) {
struct dc_stream_state *stream = new_ctx->streams[i]; struct dc_stream_state *stream = new_ctx->streams[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册