The local variable 'vamgr' is unused in amdgpu_va_range_free. Signed-off-by: Jammy Zhou <Jammy.Zhou@xxxxxxx> Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> --- 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 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel