Commit d8da2134 authored by Ma Jun's avatar Ma Jun Committed by Alex Deucher

drm/amd/pm: Fix the return value in default case

Fix the return value in default case and drop
redundant 'break'.
Signed-off-by: default avatarMa Jun <Jun.Ma2@amd.com>
Reviewed-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8eece69a
...@@ -2435,7 +2435,6 @@ int smu_get_power_limit(void *handle, ...@@ -2435,7 +2435,6 @@ int smu_get_power_limit(void *handle,
break; break;
default: default:
return -EOPNOTSUPP; return -EOPNOTSUPP;
break;
} }
switch (pp_limit_level) { switch (pp_limit_level) {
...@@ -2453,7 +2452,6 @@ int smu_get_power_limit(void *handle, ...@@ -2453,7 +2452,6 @@ int smu_get_power_limit(void *handle,
break; break;
default: default:
return -EOPNOTSUPP; return -EOPNOTSUPP;
break;
} }
if (limit_type != SMU_DEFAULT_PPT_LIMIT) { if (limit_type != SMU_DEFAULT_PPT_LIMIT) {
...@@ -2487,7 +2485,7 @@ int smu_get_power_limit(void *handle, ...@@ -2487,7 +2485,7 @@ int smu_get_power_limit(void *handle,
*limit = smu->min_power_limit; *limit = smu->min_power_limit;
break; break;
default: default:
break; return -EINVAL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment