diff options
| author | Srinivasan Shanmugam <[email protected]> | 2024-02-24 02:18:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-02-27 16:06:29 +0000 |
| commit | 7cf1ad2fe10634238b38442a851d89514cb14ea2 (patch) | |
| tree | dd94d3855ff485ca10f6bb75c9bf691d0610b1ed /drivers/gpu/drm/amd/amdgpu/atom.c | |
| parent | drm/amd/pm: Increase SMUv13.0.6 mode-2 reset time (diff) | |
| download | kernel-7cf1ad2fe10634238b38442a851d89514cb14ea2.tar.gz kernel-7cf1ad2fe10634238b38442a851d89514cb14ea2.zip | |
drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int()
Missing break statement in the ATOM_ARG_IMM case of a switch statement,
adds the missing break statement, ensuring that the program's control
flow is as intended.
Fixes the below:
drivers/gpu/drm/amd/amdgpu/atom.c:323 atom_get_src_int() warn: ignoring unreachable code.
Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
Cc: Jammy Zhou <[email protected]>
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/atom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c index b888613f653f..72362df352f6 100644 --- a/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/drivers/gpu/drm/amd/amdgpu/atom.c @@ -320,7 +320,7 @@ static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr, DEBUG("IMM 0x%02X\n", val); return val; } - return 0; + break; case ATOM_ARG_PLL: idx = U8(*ptr); (*ptr)++; |
