diff options
author | anholt <anholt@FreeBSD.org> | 2002-04-29 00:25:10 +0000 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2002-04-29 00:25:10 +0000 |
commit | bb589e7417c17ba35f6dde61a74770697973f0c4 (patch) | |
tree | a41daedb2e90cf5f6d51ea1940bf76edec4de6a0 /sys/dev/drm/mga_drv.h | |
parent | 730253b82fd8aee07046e5d6a79003eac5811fdf (diff) | |
download | FreeBSD-src-bb589e7417c17ba35f6dde61a74770697973f0c4.zip FreeBSD-src-bb589e7417c17ba35f6dde61a74770697973f0c4.tar.gz |
Diff reduction to my experimental code: clean up return code handling.
Approved by: des
Diffstat (limited to 'sys/dev/drm/mga_drv.h')
-rw-r--r-- | sys/dev/drm/mga_drv.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/drm/mga_drv.h b/sys/dev/drm/mga_drv.h index 002b3c7..9483068 100644 --- a/sys/dev/drm/mga_drv.h +++ b/sys/dev/drm/mga_drv.h @@ -198,7 +198,7 @@ do { \ dev->lock.pid != DRM_OS_CURRENTPID ) { \ DRM_ERROR( "%s called without lock held\n", \ __FUNCTION__ ); \ - DRM_OS_RETURN( EINVAL ); \ + return DRM_OS_ERR(EINVAL); \ } \ } while (0) @@ -211,7 +211,7 @@ do { \ dev_priv->prim.high_mark ) { \ if ( MGA_DMA_DEBUG ) \ DRM_INFO( __FUNCTION__": wrap...\n" ); \ - DRM_OS_RETURN( EBUSY); \ + return DRM_OS_ERR(EBUSY); \ } \ } \ } while (0) @@ -222,7 +222,7 @@ do { \ if ( mga_do_wait_for_idle( dev_priv ) ) { \ if ( MGA_DMA_DEBUG ) \ DRM_INFO( __FUNCTION__": wrap...\n" ); \ - DRM_OS_RETURN( EBUSY); \ + return DRM_OS_ERR(EBUSY); \ } \ mga_do_dma_wrap_end( dev_priv ); \ } \ |