From 6ced2a50056acbf7caec404a1edfa3b07fa1ac5d Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 29 Dec 2021 10:48:03 +0100 Subject: feat: remove NULL-checks --- queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'queue.c') diff --git a/queue.c b/queue.c index 622609e..8533691 100644 --- a/queue.c +++ b/queue.c @@ -53,10 +53,10 @@ queue_put(struct queue *queue, T data) bool queue_get(struct queue *queue, T *data) { - if ( queue->head != NULL ) { + if ( queue->head ) { struct queue_item *next = queue->head->next; - if ( data != NULL ) { + if ( data ) { *data = queue->head->data; } free(queue->head); -- cgit v1.3