drm/amd/display: Remove plane_res.mi check in dce110_apply_ctx_for_surface
authorHarry Wentland <harry.wentland@amd.com>
Fri, 10 Nov 2017 17:00:41 +0000 (12:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:51:59 +0000 (10:51 -0500)
commitede569844a1b11b368a88269545a9d83cf98063c
tree5e18c15cea40df9931e6bab6a0fb130ef580311a
parent492c378aaa63e0ba65e6ee9645022e2b83703f25
drm/amd/display: Remove plane_res.mi check in dce110_apply_ctx_for_surface

plane_res.mi (memory interface) can never be NULL for DCE110

Found by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2881
dce110_apply_ctx_for_surface() error: we previously assumed
'pipe_ctx->plane_res.mi' could be null (see line 2873)

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/dce110/dce110_hw_sequencer.c