summaryrefslogtreecommitdiff
path: root/lib/pqueue.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 19:43:09 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 23:00:44 +0000
commit76f014689093aa8eecc1061e13cc4f8694967a12 (patch)
treed68df7e97b46f672cd944e89e62d823149781d07 /lib/pqueue.c
parent97b5d752d7af198d0b2881b5a3b2e61f2b4921e5 (diff)
*: do not check XMALLOC / XCALLOC for null ret
They never return NULL Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/pqueue.c')
-rw-r--r--lib/pqueue.c2
1 files changed, 0 insertions, 2 deletions
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);