amdgpu: fix a valgrind warning

==10307== Conditional jump or move depends on uninitialised value(s)
==10307==    at 0xB9F4CFA: amdgpu_device_initialize (amdgpu_device.c:193)

Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
main
Marek Olšák 2015-05-06 18:59:02 +02:00 committed by Alex Deucher
parent 4b39a8e7cf
commit 2d588797f1
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ int amdgpu_device_initialize(int fd,
int r;
int flag_auth = 0;
int flag_authexist=0;
uint32_t accel_working;
uint32_t accel_working = 0;
*device_handle = NULL;