Re: [PATCH] drm/amdgpu: remove unreachable code

2021-05-25 Thread Alex Deucher
On Tue, May 25, 2021 at 11:27 AM Christian König wrote: > > Am 24.05.21 um 20:48 schrieb Alex Deucher: > > Applied. Thanks! > > Ok, that's unfortunate. > > IIRC we added the code because of a different compiler warning. > I can revert it. Alex > Christian. > > > > > Alex > > > > On Mon, May 24

Re: [PATCH] drm/amdgpu: remove unreachable code

2021-05-25 Thread Christian König
Am 24.05.21 um 20:48 schrieb Alex Deucher: Applied. Thanks! Ok, that's unfortunate. IIRC we added the code because of a different compiler warning. Christian. Alex On Mon, May 24, 2021 at 6:47 AM Jiapeng Chong wrote: In the function amdgpu_uvd_cs_msg(), every branch in the switch state

Re: [PATCH] drm/amdgpu: remove unreachable code

2021-05-24 Thread Christian König
Am 24.05.21 um 12:46 schrieb Jiapeng Chong: 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_m

Re: [PATCH] drm/amdgpu: remove unreachable code

2021-05-24 Thread Alex Deucher
Applied. Thanks! Alex On Mon, May 24, 2021 at 6:47 AM Jiapeng Chong wrote: > > 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/

[PATCH] drm/amdgpu: remove unreachable code

2021-05-24 Thread Jiapeng Chong
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. Reporte