From 2729b2aa67ff9a48beeff6f44794ee95b9ea8b0c Mon Sep 17 00:00:00 2001 From: Yong Zhao Date: Tue, 19 Dec 2017 14:49:51 -0500 Subject: [PATCH 3047/4131] drm/amdkfd: Remove useless code Change-Id: I9755cd4fbc4c9a0e62b8021c702a35d43dcb69c0 Signed-off-by: Yong Zhao --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index 7e63b8b..aba0291 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c @@ -1374,9 +1374,6 @@ static int kfd_ioctl_map_memory_to_gpu(struct file *filep, peer = kfd_device_by_id(devices_arr[i]); if (WARN_ON_ONCE(!peer)) continue; - peer_pdd = kfd_get_process_device_data(dev, p); - if (WARN_ON_ONCE(!peer_pdd)) - continue; kfd_flush_tlb(peer, p->pasid); } } else { -- 2.7.4