drm/amd/display: Don't use target before null check
authorHarry Wentland <harry.wentland@amd.com>
Fri, 23 Dec 2016 15:53:24 +0000 (10:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:07:41 +0000 (17:07 -0400)
commitf79d7749e7381b0ff9d26733f338ad767d75539c
treec581e208286e75c026391efcb4ea9433ad768eed
parente12078c56c24894b07cd3aae43788b90d6ea390e
drm/amd/display: Don't use target before null check

It might blow up.

Signed-off-by: Harry Wentland <harry.wentland@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_target.c