From 076b17cea9c9d6c86b926a166ef58f02334c9bdc Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 27 May 2008 14:13:26 +0200 Subject: [PATCH] smalloc: kill another debug printf() Signed-off-by: Jens Axboe --- smalloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/smalloc.c b/smalloc.c index 3d3986b8..c03c4040 100644 --- a/smalloc.c +++ b/smalloc.c @@ -439,10 +439,8 @@ static void *smalloc_pool(struct pool *pool, unsigned int size) #endif ptr = __smalloc_pool(pool, alloc_size); - if (!ptr) { - printf("failed allocating %u\n", alloc_size); + if (!ptr) return NULL; - } hdr = ptr; hdr->size = alloc_size; -- 2.25.1