winsys/amdgpu: Make local variable r signed
authorMichel Dänzer <mdaenzer@redhat.com>
Tue, 18 Feb 2020 17:52:44 +0000 (18:52 +0100)
committerMichel Dänzer <michel@daenzer.net>
Fri, 21 Feb 2020 16:09:05 +0000 (17:09 +0100)
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 <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3879>

src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c

index 4bbd50664ba45e2286b4a1103517eff940a0e908..1db7cf6b291e4cb15133f9e6467307da16b78240 100644 (file)
@@ -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)