summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-11-20 21:55:24 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-11-20 21:55:24 +0000
commita1485e049c5501c61e2311d25fec9cfe5bfeeb10 (patch)
treea5761867b4841c5bf6b2bd2ffa3f1228939f37c6 /sys
parentcf654c0c0898f6e9270d6e1dc044545e7e8cb231 (diff)
Silly Linux-style negative errno returns.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/i915/i915_gem_tiling.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem_tiling.c b/sys/dev/pci/drm/i915/i915_gem_tiling.c
index bb14e19dd2b..37d3139bab4 100644
--- a/sys/dev/pci/drm/i915/i915_gem_tiling.c
+++ b/sys/dev/pci/drm/i915/i915_gem_tiling.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_gem_tiling.c,v 1.9 2013/11/19 19:14:09 kettenis Exp $ */
+/* $OpenBSD: i915_gem_tiling.c,v 1.10 2013/11/20 21:55:23 kettenis Exp $ */
/*
* Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org>
*
@@ -328,17 +328,17 @@ i915_gem_set_tiling(struct drm_device *dev, void *data,
obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
if (&obj->base == NULL)
- return ENOENT;
+ return -ENOENT;
drm_hold_object(&obj->base);
if (!i915_tiling_ok(dev,
args->stride, obj->base.size, args->tiling_mode)) {
- ret = EINVAL;
+ ret = -EINVAL;
goto out;
}
if (obj->pin_count) {
- ret = EBUSY;
+ ret = -EBUSY;
goto out;
}
@@ -437,7 +437,7 @@ i915_gem_get_tiling(struct drm_device *dev, void *data,
obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
if (&obj->base == NULL)
- return ENOENT;
+ return -ENOENT;
drm_hold_object(&obj->base);
DRM_LOCK();