summaryrefslogtreecommitdiff
path: root/amdgpu/amdgpu_device.c
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-08-05 13:47:49 -0400
commit2d588797f1958f6ef287bc844904036f6d385ad3 (patch)
tree04cf2eb5e392dd0ff355116edfc12d6296292e11 /amdgpu/amdgpu_device.c
parent4b39a8e7cfff20a9cf8512541b9fc764b42da974 (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>
Diffstat (limited to 'amdgpu/amdgpu_device.c')
-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;