diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-10-02 04:48:54 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-10-02 04:48:54 +0000 |
commit | a6b84f73e18d88524a906a319c6c8e3c44bd7dea (patch) | |
tree | baef00cdac4a6e1fd77215e22d9e12ba92ed444a /bsd/drm_dma.h | |
parent | 4dee75ff58a50559cb8a92c276c0b952c2776154 (diff) |
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.
Diffstat (limited to 'bsd/drm_dma.h')
-rw-r--r-- | bsd/drm_dma.h | 5 |
1 files changed, 1 insertions, 4 deletions
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; |