]> git.baikalelectronics.ru Git - kernel.git/commit
amdgpu: remove unreachable code
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 28 May 2021 09:29:18 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:55:39 +0000 (22:55 -0400)
commit8867d99328104a2a4662ca0af6867909f201f0e4
treec6c1f032e2d61d30a11d77a7191d6d5950828c75
parent77ba1a83ce94195436b84c415d8f701164f50398
amdgpu: remove unreachable code

In the function amdgpu_uvd_cs_msg(), every branch in the switch
statement will have a return, so the code below the switch statement
will not be executed.

Eliminate the follow smatch warning:

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:845 amdgpu_uvd_cs_msg() warn:
ignoring unreachable code.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c