diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-26 07:25:07 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-26 07:25:07 +0000 |
commit | 12513825f03c1f486b0442b73d892b38fe1cd2a4 (patch) | |
tree | 05941471ca03e5ce33a0cbbafe0e05bb77e35739 /sys/dev/pci/drm/drm_memory.c | |
parent | a09a0a7005c9f8faae78ae1dc0b83c57bec59387 (diff) |
The drm_* allocation functions have been #defined to not use most of
their arguments for a while. Actually go through the code and remove the
extraneous arguments. Makes things easier to read.
Diffstat (limited to 'sys/dev/pci/drm/drm_memory.c')
-rw-r--r-- | sys/dev/pci/drm/drm_memory.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/drm_memory.c b/sys/dev/pci/drm/drm_memory.c index fd53412b0dc..031d23cda98 100644 --- a/sys/dev/pci/drm/drm_memory.c +++ b/sys/dev/pci/drm/drm_memory.c @@ -39,13 +39,13 @@ #include "drmP.h" void* -_drm_alloc(size_t size) +drm_alloc(size_t size) { - return malloc(size, M_DRM, M_NOWAIT); + return (malloc(size, M_DRM, M_NOWAIT)); } void * -_drm_calloc(size_t nmemb, size_t size) +drm_calloc(size_t nmemb, size_t size) { if (nmemb == 0 || SIZE_MAX / nmemb < size) return (NULL); @@ -54,7 +54,7 @@ _drm_calloc(size_t nmemb, size_t size) } void * -_drm_realloc(void *oldpt, size_t oldsize, size_t size) +drm_realloc(void *oldpt, size_t oldsize, size_t size) { void *pt; @@ -69,7 +69,7 @@ _drm_realloc(void *oldpt, size_t oldsize, size_t size) } void -_drm_free(void *pt) +drm_free(void *pt) { if (pt != NULL) free(pt, M_DRM); |