From 76f014689093aa8eecc1061e13cc4f8694967a12 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 25 Feb 2019 19:43:09 +0000 Subject: *: do not check XMALLOC / XCALLOC for null ret They never return NULL Signed-off-by: Quentin Young --- lib/pqueue.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/pqueue.c') diff --git a/lib/pqueue.c b/lib/pqueue.c index 1565de216e..87b54a681a 100644 --- a/lib/pqueue.c +++ b/lib/pqueue.c @@ -133,8 +133,6 @@ static int pqueue_expand(struct pqueue *queue) newarray = XCALLOC(MTYPE_PQUEUE_DATA, queue->array_size * DATA_SIZE * 2); - if (newarray == NULL) - return 0; memcpy(newarray, queue->array, queue->array_size * DATA_SIZE); -- cgit v1.2.3