drm/amd/powerplay: drop unnecessary warning prompt

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>
This commit is contained in:
Evan Quan 2019-11-26 15:05:07 +08:00 committed by Alex Deucher
parent f794913ce8
commit ebcef76b6c

View 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;
}