src/linked_list.c

changeset 528
4fbfac557df8
parent 524
e98b09018d32
child 552
4373c2a90066
     1.1 --- a/src/linked_list.c	Mon Apr 18 16:56:29 2022 +0200
     1.2 +++ b/src/linked_list.c	Mon Apr 18 17:26:21 2022 +0200
     1.3 @@ -779,8 +779,7 @@
     1.4          size_t item_size
     1.5  ) {
     1.6      cx_linked_list *list = cxCalloc(allocator, 1, sizeof(cx_linked_list));
     1.7 -    if (list == NULL)
     1.8 -        return NULL;
     1.9 +    if (list == NULL) return NULL;
    1.10  
    1.11      list->base.cl = &cx_linked_list_class;
    1.12      list->base.allocator = allocator;
    1.13 @@ -796,8 +795,7 @@
    1.14          CxListComparator comparator
    1.15  ) {
    1.16      cx_linked_list *list = cxCalloc(allocator, 1, sizeof(cx_linked_list));
    1.17 -    if (list == NULL)
    1.18 -        return NULL;
    1.19 +    if (list == NULL) return NULL;
    1.20  
    1.21      list->base.cl = &cx_pointer_linked_list_class;
    1.22      list->base.allocator = allocator;

mercurial