[PATCH 4/5] amdgpu: fix one warning from previous commit

Jammy Zhou Jammy.Zhou at amd.com
Wed Aug 12 20:33:44 PDT 2015


The local variable 'vamgr' is unused in amdgpu_va_range_free.

Signed-off-by: Jammy Zhou <Jammy.Zhou at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
---
 amdgpu/amdgpu_vamgr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c
index 91aad4e..698826d 100644
--- a/amdgpu/amdgpu_vamgr.c
+++ b/amdgpu/amdgpu_vamgr.c
@@ -295,8 +295,6 @@ int amdgpu_va_range_alloc(amdgpu_device_handle dev,
 
 int amdgpu_va_range_free(amdgpu_va_handle va_range_handle)
 {
-	struct amdgpu_bo_va_mgr *vamgr;
-
 	if(!va_range_handle || !va_range_handle->address)
 		return 0;
 
-- 
1.9.1



More information about the dri-devel mailing list