drm/amdkfd: set "r = 0" explicitly before goto
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 26 Nov 2021 17:42:50 +0000 (12:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 22:07:33 +0000 (17:07 -0500)
commitfc2c456ea8329053685db179d30e3ff0c91e5066
tree73d5d46674c36b0f20b732b024ad2b1d8126cb6f
parentc9beecc5c9626ab772160ab3f8e209abc09fa54d
drm/amdkfd: set "r = 0" explicitly before goto

To silence the following Smatch static checker warning:

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c:2615
svm_range_restore_pages()
warn: missing error code here? 'get_task_mm()' failed. 'r' = '0'

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c