diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-10-26 10:33:42 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-10-26 10:33:42 +0200 |
commit | 343696583c77983ac7689b24cd49529864035cf7 (patch) | |
tree | a384fc19a0d267fb6989c18d0d6a9c0364f69bc3 /libdrm/xf86drm.c | |
parent | 26c32a3d797efb7474e5ae88c46afcb0e6015294 (diff) | |
parent | a4c87d3796cac374d25e01b26bdbb9028ce03107 (diff) |
Merge branch 'master' into modesetting-101
Diffstat (limited to 'libdrm/xf86drm.c')
-rw-r--r-- | libdrm/xf86drm.c | 4 |
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; } |