diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c index eaca0381e8bd03d7131d7c327579749cbfac2ca7..30317cf9dc9a622efc359cf8945e1eca10ddc0fe 100644 --- a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c +++ b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c @@ -181,10 +181,8 @@ static int arcturus_get_smu_msg_index(struct smu_context *smc, uint32_t index) return -EINVAL; mapping = arcturus_message_map[index]; - if (!(mapping.valid_mapping)) { - pr_warn("Unsupported SMU message: %d\n", index); + if (!(mapping.valid_mapping)) return -EINVAL; - } return mapping.map_to; }