From: Michel Dänzer Date: Tue, 18 Feb 2020 17:52:44 +0000 (+0100) Subject: winsys/amdgpu: Make local variable r signed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=228cbdfe67e465dc79558fc76a51d8115251b5e5;p=mesa.git winsys/amdgpu: Make local variable r signed 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: --- 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)