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_ioctl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bsd/drm_ioctl.h') diff --git a/bsd/drm_ioctl.h b/bsd/drm_ioctl.h index 33146bb5..b9598b4e 100644 --- a/bsd/drm_ioctl.h +++ b/bsd/drm_ioctl.h @@ -113,7 +113,8 @@ int DRM(setunique)( DRM_IOCTL_ARGS ) dev->unique_len = u.unique_len; dev->unique = DRM(alloc)(u.unique_len + 1, DRM_MEM_DRIVER); - if(!dev->unique) return DRM_ERR(ENOMEM); + if (dev->unique == NULL) + return DRM_ERR(ENOMEM); if (DRM_COPY_FROM_USER(dev->unique, u.unique, dev->unique_len)) return DRM_ERR(EFAULT); -- cgit v1.2.3