diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-05-11 04:23:02 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-05-11 04:23:02 +0000 |
commit | 485b259b4492ed6b7abdf063d1d5cefe01d3a3b0 (patch) | |
tree | 6ec0a5ee4844dda35c70f9bfd44d7a146269b477 /shared/r128_state.c | |
parent | a1160ba2793b6c17a8aeb31b0d4cc17f3439cf9a (diff) |
Add missing DRM_ERR()s.
Diffstat (limited to 'shared/r128_state.c')
-rw-r--r-- | shared/r128_state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/r128_state.c b/shared/r128_state.c index 81d22099..6ec11b02 100644 --- a/shared/r128_state.c +++ b/shared/r128_state.c @@ -916,7 +916,7 @@ static int r128_cce_dispatch_write_span( drm_device_t *dev, count = depth->n; if (count > 4096 || count <= 0) - return -EMSGSIZE; + return DRM_ERR(EMSGSIZE); if ( DRM_COPY_FROM_USER( &x, depth->x, sizeof(x) ) ) { return DRM_ERR(EFAULT); @@ -1012,7 +1012,7 @@ static int r128_cce_dispatch_write_pixels( drm_device_t *dev, count = depth->n; if (count > 4096 || count <= 0) - return -EMSGSIZE; + return DRM_ERR(EMSGSIZE); xbuf_size = count * sizeof(*x); ybuf_size = count * sizeof(*y); @@ -1131,7 +1131,7 @@ static int r128_cce_dispatch_read_span( drm_device_t *dev, count = depth->n; if (count > 4096 || count <= 0) - return -EMSGSIZE; + return DRM_ERR(EMSGSIZE); if ( DRM_COPY_FROM_USER( &x, depth->x, sizeof(x) ) ) { return DRM_ERR(EFAULT); @@ -1176,7 +1176,7 @@ static int r128_cce_dispatch_read_pixels( drm_device_t *dev, count = depth->n; if (count > 4096 || count <= 0) - return -EMSGSIZE; + return DRM_ERR(EMSGSIZE); if ( count > dev_priv->depth_pitch ) { count = dev_priv->depth_pitch; |