RE: [PATCH 04/12] drm/amdgpu: remove dead code in atom_get_src_int

2024-06-05 Thread Huang, Tim
im ; Zhang, Jesse(Jie) > ; Zhang, Jesse(Jie) > Subject: [PATCH 04/12] drm/amdgpu: remove dead code in atom_get_src_int > > Since the range of align is 0~7, the expression is: align = (attr >> 3) & 7. > In the case of ATOM_ARG_IMM, the code cannot reach the default case. > S

[PATCH 04/12] drm/amdgpu: remove dead code in atom_get_src_int

2024-06-03 Thread Jesse Zhang
Since the range of align is 0~7, the expression is: align = (attr >> 3) & 7. In the case of ATOM_ARG_IMM, the code cannot reach the default case. So there is no need for "break". Signed-off-by: Jesse Zhang --- drivers/gpu/drm/amd/amdgpu/atom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/d