aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2023-09-30 02:41:31 +0000
committerAlex Deucher <[email protected]>2023-10-05 21:59:35 +0000
commite0a3e7bf62dfbf6a1730f244b2adf53fac07003b (patch)
treeb975de147fcaba4b1525738ab72edeb92a8a3f02 /drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h
parentDocumentation/amdgpu: Add board info details (diff)
downloadkernel-e0a3e7bf62dfbf6a1730f244b2adf53fac07003b.tar.gz
kernel-e0a3e7bf62dfbf6a1730f244b2adf53fac07003b.zip
drm/amdgpu: Drop unnecessary return statements
There is no reason to call return at the end of function that returns void. Fixes the below: WARNING: void function return statements are not generally useful Thus remove such a statement in the affected functions. Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Cc: "Pan, Xinhui" <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h
index 3c988cc406e4..381101d2bf05 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h
@@ -112,7 +112,6 @@ fallback:
cur->remaining = size;
cur->node = NULL;
WARN_ON(res && start + size > res->size);
- return;
}
/**