summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ioctl_wrappers.c2
-rw-r--r--tests/gem_userptr_blits.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 1e5b77e8..507a1aa2 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -649,7 +649,7 @@ skip:
bool gem_has_enable_ring(int fd,int param)
{
drm_i915_getparam_t gp;
- int ret, tmp;
+ int tmp;
memset(&gp, 0, sizeof(gp));
gp.value = &tmp;
diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c
index cec8c8fd..cc4af152 100644
--- a/tests/gem_userptr_blits.c
+++ b/tests/gem_userptr_blits.c
@@ -1044,7 +1044,7 @@ static int test_unmap_cycles(int fd, int expected)
unsigned int total_ram;
uint64_t aperture_size;
-int fd, count, size = 0, ret;
+int fd, count;
int main(int argc, char **argv)