diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-04-28 14:55:34 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-12-18 11:23:51 -0800 |
commit | 1035fc72b9017eb2466760133ca7bbc9155c8c46 (patch) | |
tree | ed2edc00ac0b4ac73c45119b9738515f1c9993e8 /glamor/glamor_egl.c | |
parent | 33e11cd6149294060269ed693de67b135868e094 (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.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; } |