drm/amd/display: Fix context alloc failed logging
authorAndrew Jiang <Andrew.Jiang@amd.com>
Fri, 1 Sep 2017 20:03:16 +0000 (16:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:17:32 +0000 (18:17 -0400)
commitaeff7ab11e2516bfa41c77b9ea57bc2c07bb3b62
treea16bc903ad8405fbff539face1475cc57fc8583c
parent603767f903bf5bf301728b197dcde63cf880fe2e
drm/amd/display: Fix context alloc failed logging

Since there was no return statement in the fail block immediately
preceding the context_alloc_fail block, any failure within the
function caused a context alloc failed error message to be printed.
Since the context_alloc_fail block is only used once, move it to
where the goto is directly and accompany it with a return statement.

Signed-off-by: Andrew Jiang <Andrew.Jiang@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>
drivers/gpu/drm/amd/display/dc/core/dc.c