diff options
| author | Srinivasan Shanmugam <[email protected]> | 2023-12-27 07:24:44 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-01-05 21:10:43 +0000 |
| commit | bf2ad4fb8adca89374b54b225d494e0b1956dbea (patch) | |
| tree | ef248b21d6428acf1d7621e2cffe014fc23f12c0 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c | |
| parent | drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kf... (diff) | |
| download | kernel-bf2ad4fb8adca89374b54b225d494e0b1956dbea.tar.gz kernel-bf2ad4fb8adca89374b54b225d494e0b1956dbea.zip | |
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 <[email protected]>
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
0 files changed, 0 insertions, 0 deletions
