diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-05-11 04:23:02 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-05-11 04:23:02 +0000 |
commit | 485b259b4492ed6b7abdf063d1d5cefe01d3a3b0 (patch) | |
tree | 6ec0a5ee4844dda35c70f9bfd44d7a146269b477 /shared/radeon_mem.c | |
parent | a1160ba2793b6c17a8aeb31b0d4cc17f3439cf9a (diff) |
Add missing DRM_ERR()s.
Diffstat (limited to 'shared/radeon_mem.c')
-rw-r--r-- | shared/radeon_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/radeon_mem.c b/shared/radeon_mem.c index 3a3bf011..83e2f6c0 100644 --- a/shared/radeon_mem.c +++ b/shared/radeon_mem.c @@ -137,12 +137,12 @@ static int init_heap(struct mem_block **heap, int start, int size) struct mem_block *blocks = DRM_MALLOC(sizeof(*blocks)); if (!blocks) - return -ENOMEM; + return DRM_ERR(ENOMEM); *heap = DRM_MALLOC(sizeof(**heap)); if (!*heap) { DRM_FREE( blocks, sizeof(*blocks) ); - return -ENOMEM; + return DRM_ERR(ENOMEM); } blocks->start = start; |