diff options
author | 2024-05-30 14:07:30 +0800 | |
---|---|---|
committer | 2024-06-05 11:25:14 -0400 | |
commit | 7f7f43f28eb325c4ed8ed3f0534cdb00c9831e0d (patch) | |
tree | ce53e6f887f56e2e567f2294bddfe4a24e9a3802 | |
parent | drm/amdgpu: fix failure mapping legacy queue when FLR (diff) | |
download | wireguard-linux-7f7f43f28eb325c4ed8ed3f0534cdb00c9831e0d.tar.xz wireguard-linux-7f7f43f28eb325c4ed8ed3f0534cdb00c9831e0d.zip |
drm/amdkfd: remove logically dead code
idr_for_each_entry can ensure that mem is not empty during the loop.
So don't need check mem again.
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index fdf171ad4a3c..32e5db509560 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c @@ -1913,11 +1913,6 @@ static int criu_checkpoint_bos(struct kfd_process *p, struct kfd_criu_bo_priv_data *bo_priv; int i, dev_idx = 0; - if (!mem) { - ret = -ENOMEM; - goto exit; - } - kgd_mem = (struct kgd_mem *)mem; dumper_bo = kgd_mem->bo; |