From a6b84f73e18d88524a906a319c6c8e3c44bd7dea Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 2 Oct 2003 04:48:54 +0000 Subject: Mostly whitespace cleanups and style(9) fixes focused on "if(" -> "if (" Change some nearby memset()s to bzero()s or to calloc allocations to take advantage of M_ZERO). Reverse some error tests to reduce high levels of indentation. Move the sg_cleanup() call out of the maplist loop in DRM(takedown)-- I can't see any need for it to be inside. --- bsd/drm_dma.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bsd/drm_dma.h') diff --git a/bsd/drm_dma.h b/bsd/drm_dma.h index ec17d557..21036f71 100644 --- a/bsd/drm_dma.h +++ b/bsd/drm_dma.h @@ -156,10 +156,7 @@ int DRM(irq_install)( drm_device_t *dev, int irq ) { int retcode; - if ( !irq ) - return DRM_ERR(EINVAL); - - if (dev->dev_private == NULL) + if ( irq == 0 || dev->dev_private == NULL) return DRM_ERR(EINVAL); DRM_LOCK; -- cgit v1.2.3