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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux