Commit 473527e7 authored by Sunil Khatri's avatar Sunil Khatri Committed by Alex Deucher
Browse files

drm/amdgpu/userq: dont use goto to jump when at end of function



In function amdgpu_userq_restore_worker we dont need to use
goto as we already in the end of function and it will exit
naturally.

Signed-off-by: default avatarSunil Khatri <sunil.khatri@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a0f0b6d3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1227,10 +1227,8 @@ static void amdgpu_userq_restore_worker(struct work_struct *work)
	}

	ret = amdgpu_userq_restore_all(uq_mgr);
	if (ret) {
	if (ret)
		drm_file_err(uq_mgr->file, "Failed to restore all queues\n");
		goto unlock;
	}

unlock:
	mutex_unlock(&uq_mgr->userq_mutex);