]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: remove dead code in atom_get_src_int
authorJesse Zhang <jesse.zhang@amd.com>
Wed, 5 Jun 2024 07:44:38 +0000 (15:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 19:34:10 +0000 (15:34 -0400)
commit27b500b77b82bd18c9357111fb639dcbdda31c26
treea41a79aa2a43e9841f8a80c8d5d10fe069e1316e
parent57a0d65bd1d0bb22c9a73ddf61e91b3478706522
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.
So there is no need for "break".

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Suggested-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atom.c