diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-09-19 13:54:39 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-09-19 13:54:39 +0000 |
commit | 759572da3bc7f5bb3d8774f007be61a33d6abfc7 (patch) | |
tree | e7126f5053fdd08368e2a97003f07c21bb0705ae | |
parent | fa696702b88a66a86fe79cd44ca2e1f1e412bacd (diff) |
fix some DRM_OS_RETURN values.
-rw-r--r-- | linux/r128_state.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/r128_state.c b/linux/r128_state.c index ba328049..073ee2ac 100644 --- a/linux/r128_state.c +++ b/linux/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 ); |