summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-06 18:59:02 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-07-30 00:11:10 -0400
commit57b8b4b375d179488a8ad3214ccdadc012a1c558 (patch)
treef3ba462da97dbe5d2b4d94337870d10cef7bdad6
parent239539da4a4b161ac9a05c191178c177edec5e87 (diff)
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>
-rw-r--r--amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index b50ce26a..048a9093 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -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;