drm/amd/powerplay: drop unnecessary warning prompt
authorEvan Quan <evan.quan@amd.com>
Tue, 26 Nov 2019 07:05:07 +0000 (15:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Dec 2019 22:05:16 +0000 (17:05 -0500)
As the check may be done with purpose and the warning
output will be confusing.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c

index 199c96caa88264a21dac5a37d1f1b6d3ea537e84..17eeb546c550bd38a94999dc78661232792d2499 100644 (file)
@@ -280,10 +280,8 @@ static int arcturus_get_workload_type(struct smu_context *smu, enum PP_SMC_POWER
                return -EINVAL;
 
        mapping = arcturus_workload_map[profile];
-       if (!(mapping.valid_mapping)) {
-               pr_warn("Unsupported SMU power source: %d\n", profile);
+       if (!(mapping.valid_mapping))
                return -EINVAL;
-       }
 
        return mapping.map_to;
 }