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

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Yongqiang Sun 2017-09-21 10:46:33 -04:00 committed by Alex Deucher
parent 4f4ee68686
commit d596e5d08d
1 changed files with 5 additions and 4 deletions

View File

@ -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];