From 2d588797f1958f6ef287bc844904036f6d385ad3 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 6 May 2015 18:59:02 +0200 Subject: 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 Reviewed-by: Alex Deucher --- amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'amdgpu') 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; -- cgit v1.2.3