Skip to contentSkip to conversation

drm/amdgpu: remove dead code in amdgpu_vpe_configure_dpm

PATCH In review Jesse Zhang 1 participant 1 message Jun 3, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/12 drm/amdgpu: remove dead code in amdgpu_vpe_configure_dpm

When switching on idx, the value of idx must be between 0 and 3. The switch governing value idx cannot reach the default case.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c +0 -2
index 49881073ff58..fb1902ba0c80 100644
@@ -183,8 +183,6 @@ int amdgpu_vpe_configure_dpm(struct amdgpu_vpe *vpe)
 			case 3:
 				pratio_vmax_freq = min_freq;
 				break;
-			default:
-				break;
 			}
 		}
 
Signature · 1 line
2.25.1