mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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>
This commit is contained in:
parent
c8ad1bbbc2
commit
7f7f43f28e
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user