]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Remove unnecessary NULL check in set_preferred_link_settings
authorHarry Wentland <harry.wentland@amd.com>
Fri, 31 May 2019 18:17:43 +0000 (14:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:10 +0000 (14:18 -0500)
commit119a9829d7e4a3b182e4c6de1f39db09543d2016
treec24d951cb2f51ef887577e67508b4f50d66016d0
parent837f5a7fab69ec49402f3f234178eed60b601700
drm/amd/display: Remove unnecessary NULL check in set_preferred_link_settings

[Why]
link_stream is never NULL here as we've dereferenced it a couple lines before
and have done so for a couple months now.

[How]
- Drop the NULL check.
- Initialize where we know link_stream is non-NULL

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c