summaryrefslogtreecommitdiff
path: root/glamor/glamor_egl.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-04-28 14:55:34 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:51 -0800
commit1035fc72b9017eb2466760133ca7bbc9155c8c46 (patch)
treeed2edc00ac0b4ac73c45119b9738515f1c9993e8 /glamor/glamor_egl.c
parent33e11cd6149294060269ed693de67b135868e094 (diff)
Fixed all unused variables warnings.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_egl.c')
-rw-r--r--glamor/glamor_egl.c3
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;
}