Skip to content

Commit 7f7f43f

Browse files
Jie1zhangalexdeucher
authored andcommitted
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 <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent c8ad1bb commit 7f7f43f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_chardev.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,11 +1913,6 @@ static int criu_checkpoint_bos(struct kfd_process *p,
19131913
struct kfd_criu_bo_priv_data *bo_priv;
19141914
int i, dev_idx = 0;
19151915

1916-
if (!mem) {
1917-
ret = -ENOMEM;
1918-
goto exit;
1919-
}
1920-
19211916
kgd_mem = (struct kgd_mem *)mem;
19221917
dumper_bo = kgd_mem->bo;
19231918

0 commit comments

Comments
 (0)