drm/amdgpu: Remove unreachable code in 'atom_skip_src_int()'
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Thu, 28 Dec 2023 17:12:04 +0000 (22:42 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jan 2024 21:10:33 +0000 (16:10 -0500)
Fixes the below:
drivers/gpu/drm/amd/amdgpu/atom.c:398 atom_skip_src_int() warn: ignoring unreachable code.

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atom.c

index 2c221000782cdffa5c57aeb2b464db0836895f8c..a33e890c70d904a2be4f0f33cf9a194e053b70be 100644 (file)
@@ -395,7 +395,6 @@ static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr)
                        (*ptr)++;
                        return;
                }
-               return;
        }
 }