]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 27 Dec 2023 07:24:44 +0000 (12:54 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jan 2024 21:10:43 +0000 (16:10 -0500)
commitbf2ad4fb8adca89374b54b225d494e0b1956dbea
treeef248b21d6428acf1d7621e2cffe014fc23f12c0
parent499839eca34ad62d43025ec0b46b80e77065f6d8
drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'

Return value of container_of(...) can't be null, so null check is not
required for 'fence'. Hence drop its NULL check.

Fixes the below:
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c:93 to_amdgpu_amdkfd_fence() warn: can 'fence' even be NULL?

Cc: Felix Kuehling <Felix.Kuehling@amd.com>
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: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c