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 <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3879>
This commit is contained in:
Michel Dänzer 2020-02-18 18:52:44 +01:00 committed by Michel Dänzer
parent 87365e263e
commit 228cbdfe67

View 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)