mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
amdgpu: fix unitialized variable
clang warning:
variable 'va_handle' is used uninitialized whenever 'if' condition is false
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
This commit is contained in:
parent
d92ab0e763
commit
004ac58509
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,7 @@ static struct amdgpu_winsys_bo *amdgpu_create_bo(struct amdgpu_winsys *ws,
|
|||
amdgpu_bo_handle buf_handle;
|
||||
uint64_t va = 0;
|
||||
struct amdgpu_winsys_bo *bo;
|
||||
amdgpu_va_handle va_handle;
|
||||
amdgpu_va_handle va_handle = NULL;
|
||||
int r;
|
||||
|
||||
/* VRAM or GTT must be specified, but not both at the same time. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue