]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra, ospf6d: Do not check if NULL for XCALLOC() 11161/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 8 May 2022 12:43:21 +0000 (15:43 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 8 May 2022 12:43:21 +0000 (15:43 +0300)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
ospf6d/ospf6_auth_trailer.c
zebra/table_manager.c

index 1095473f4a7d9c4ae4d2bc9e8e13c5070c9acfdc..1f3f87751a90fb0146d3e51bfaa66a10be4e6f5a 100644 (file)
@@ -144,8 +144,6 @@ unsigned char *ospf6_hash_message_xor(unsigned char *mes1,
        uint32_t i;
 
        result = XCALLOC(MTYPE_OSPF6_AUTH_HASH_XOR, len);
-       if (!result)
-               return NULL;
 
        for (i = 0; i < len; i++)
                result[i] = mes1[i] ^ mes2[i];
index ffc7a48eb9b288a688ccee09c7c94dd2ddbc3c4a..a3daca6c595a15ee300f73ec94dc2a8b106c803e 100644 (file)
@@ -119,8 +119,6 @@ struct table_manager_chunk *assign_table_chunk(uint8_t proto, uint16_t instance,
        }
        /* otherwise create a new one */
        tmc = XCALLOC(MTYPE_TM_CHUNK, sizeof(struct table_manager_chunk));
-       if (!tmc)
-               return NULL;
 
        if (zvrf->tbl_mgr->start || zvrf->tbl_mgr->end)
                manual_conf = true;