From 228cbdfe67e465dc79558fc76a51d8115251b5e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Tue, 18 Feb 2020 18:52:44 +0100 Subject: [PATCH] winsys/amdgpu: Make local variable r signed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is consistent with the return type of the functions whose return values we assign to it. No functional change intended. Reviewed-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 4bbd50664ba..1db7cf6b291 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -345,7 +345,8 @@ amdgpu_winsys_create(int fd, const struct pipe_screen_config *config, struct amdgpu_screen_winsys *ws; struct amdgpu_winsys *aws; amdgpu_device_handle dev; - uint32_t drm_major, drm_minor, r; + uint32_t drm_major, drm_minor; + int r; ws = CALLOC_STRUCT(amdgpu_screen_winsys); if (!ws) -- 2.30.2