drm/amd/display: Remove unnecessary error message
authorJoshua Aberback <joshua.aberback@amd.com>
Mon, 17 Jun 2024 19:22:44 +0000 (15:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2024 20:06:53 +0000 (16:06 -0400)
[Why]
This error message is unnecessary because returning when aconnector is
uninitialized is the desired outcome during initialization. As well, there
is no equivalent error message for read_dpcd.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c

index 97614947d75b2750436d2498dbb02be3a74a0f4f..b490ae67b6beb16a38428dfa0139cb47621f08ca 100644 (file)
@@ -575,10 +575,8 @@ bool dm_helpers_dp_write_dpcd(
 {
        struct amdgpu_dm_connector *aconnector = link->priv;
 
-       if (!aconnector) {
-               DRM_ERROR("Failed to find connector for link!");
+       if (!aconnector)
                return false;
-       }
 
        return drm_dp_dpcd_write(&aconnector->dm_dp_aux.aux,
                        address, (uint8_t *)data, size) > 0;