Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/userq: dont need check for return values in amdgpu_userq_evict

Function of amdgpu_userq_evict function do not need to check
for return values as we dont use them and no need to log errors
as we are already logging in called functions.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Sunil Khatri and committed by
Alex Deucher
1d4ade36 48d1a5b3

+4 -12
+4 -12
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
··· 1258 1258 } 1259 1259 1260 1260 if (ret) 1261 - drm_file_err(uq_mgr->file, "Couldn't unmap all the queues\n"); 1261 + drm_file_err(uq_mgr->file, 1262 + "Couldn't unmap all the queues, eviction failed ret=%d\n", ret); 1262 1263 return ret; 1263 1264 } 1264 1265 ··· 1308 1307 void 1309 1308 amdgpu_userq_evict(struct amdgpu_userq_mgr *uq_mgr) 1310 1309 { 1311 - struct amdgpu_device *adev = uq_mgr->adev; 1312 - int ret; 1313 - 1314 1310 /* Wait for any pending userqueue fence work to finish */ 1315 - ret = amdgpu_userq_wait_for_signal(uq_mgr); 1316 - if (ret) 1317 - dev_err(adev->dev, "Not evicting userqueue, timeout waiting for work\n"); 1318 - 1319 - ret = amdgpu_userq_evict_all(uq_mgr); 1320 - if (ret) 1321 - dev_err(adev->dev, "Failed to evict userqueue\n"); 1322 - 1311 + amdgpu_userq_wait_for_signal(uq_mgr); 1312 + amdgpu_userq_evict_all(uq_mgr); 1323 1313 } 1324 1314 1325 1315 int amdgpu_userq_mgr_init(struct amdgpu_userq_mgr *userq_mgr, struct drm_file *file_priv,