[PATCH 07/12] drm/amdgpu: remove dead code in amdgpu_vpe_configure_dpm

Jesse Zhang jesse.zhang at amd.com
Mon Jun 3 08:48:19 UTC 2024


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

Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 49881073ff58..fb1902ba0c80 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
@@ -183,8 +183,6 @@ int amdgpu_vpe_configure_dpm(struct amdgpu_vpe *vpe)
 			case 3:
 				pratio_vmax_freq = min_freq;
 				break;
-			default:
-				break;
 			}
 		}
 
-- 
2.25.1



More information about the amd-gfx mailing list