[PATCH v2 2/2] drm/amd/display: dc_link: code clean up on detect_dp function