summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralanh <alanh>2001-09-19 13:54:39 +0000
committeralanh <alanh>2001-09-19 13:54:39 +0000
commit193a2eb207a180f15bceb39c985c3b4f0e848fb9 (patch)
tree2b631f0527fdd2fefca721fde271885132b94761
parentef9c4da1d27c60ae484f743ca5b6f689a02d0a38 (diff)
fix some DRM_OS_RETURN values.
-rw-r--r--xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c
index ba3280498..073ee2ac0 100644
--- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c
+++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c
@@ -1514,7 +1514,7 @@ int r128_cce_indirect( DRM_OS_IOCTL )
if ( !dev_priv ) {
DRM_ERROR( "%s called with no initialization\n", __FUNCTION__ );
- return -EINVAL;
+ DRM_OS_RETURN(EINVAL);
}
DRM_OS_KRNFROMUSR( indirect, (drm_r128_indirect_t *) data,
@@ -1527,7 +1527,7 @@ int r128_cce_indirect( DRM_OS_IOCTL )
if ( indirect.idx < 0 || indirect.idx >= dma->buf_count ) {
DRM_ERROR( "buffer index %d (of %d max)\n",
indirect.idx, dma->buf_count - 1 );
- return -EINVAL;
+ DRM_OS_RETURN(EINVAL);
}
buf = dma->buflist[indirect.idx];
@@ -1536,17 +1536,17 @@ int r128_cce_indirect( DRM_OS_IOCTL )
if ( buf->pid != DRM_OS_CURRENTPID ) {
DRM_ERROR( "process %d using buffer owned by %d\n",
DRM_OS_CURRENTPID, buf->pid );
- return -EINVAL;
+ DRM_OS_RETURN(EINVAL);
}
if ( buf->pending ) {
DRM_ERROR( "sending pending buffer %d\n", indirect.idx );
- return -EINVAL;
+ DRM_OS_RETURN(EINVAL);
}
if ( indirect.start < buf->used ) {
DRM_ERROR( "reusing indirect: start=0x%x actual=0x%x\n",
indirect.start, buf->used );
- return -EINVAL;
+ DRM_OS_RETURN(EINVAL);
}
RING_SPACE_TEST_WITH_RETURN( dev_priv );