summaryrefslogtreecommitdiff
path: root/libdrm/xf86drm.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-10-26 10:33:42 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-10-26 10:33:42 +0200
commit343696583c77983ac7689b24cd49529864035cf7 (patch)
treea384fc19a0d267fb6989c18d0d6a9c0364f69bc3 /libdrm/xf86drm.c
parent26c32a3d797efb7474e5ae88c46afcb0e6015294 (diff)
parenta4c87d3796cac374d25e01b26bdbb9028ce03107 (diff)
Merge branch 'master' into modesetting-101
Diffstat (limited to 'libdrm/xf86drm.c')
-rw-r--r--libdrm/xf86drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 2f9d5c80..7001a0ef 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -2865,7 +2865,7 @@ int drmBOVersion(int fd, unsigned int *major,
memset(&arg, 0, sizeof(arg));
ret = ioctl(fd, DRM_IOCTL_BO_VERSION, &arg);
if (ret)
- return ret;
+ return -errno;
if (major)
*major = arg.major;
@@ -2874,7 +2874,7 @@ int drmBOVersion(int fd, unsigned int *major,
if (patchlevel)
*patchlevel = arg.patchlevel;
- return (ret) ? -errno : 0;
+ return 0;
}