]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: dc_link: code clean up on enable_link_dp function
authorMelissa Wen <melissa.srw@gmail.com>
Fri, 28 Feb 2020 16:41:45 +0000 (13:41 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:27:18 +0000 (00:27 -0500)
commit71ae267cc71467d7f5caf7735ce17dbe2c700830
treed0ac751ce1b79cb0471dccc5fa4b10358a45b672
parent4ba8d2d64f555e7062448ef76273c1316e5ba938
drm/amd/display: dc_link: code clean up on enable_link_dp function

Coding style clean up on enable_link_dp function as suggested by
checkpatch.pl:

CHECK: Lines should not end with a '('
WARNING: line over 80 characters
WARNING: suspect code indent for conditional statements (8, 24)
CHECK: braces {} should be used on all arms of this statement
ERROR: else should follow close brace '}'
CHECK: Comparison to NULL could be written
       "link->preferred_training_settings.fec_enable"

Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c