diff options
Diffstat (limited to 'glamor/glamor_egl.c')
-rw-r--r-- | glamor/glamor_egl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index c2627b9ce..35bcc9e68 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -260,10 +260,9 @@ glamor_egl_check_has_gem(int fd) { struct drm_gem_flink flink; flink.handle = 0; - int err; ioctl(fd, DRM_IOCTL_GEM_FLINK, &flink); - if (errno == ENOENT || err == EINVAL) + if (errno == ENOENT || errno == EINVAL) return TRUE; return FALSE; } |