summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-05-08 15:43:21 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-05-08 15:43:21 +0300
commit432ee88c21fb46446289141f49cf2e4627f1857b (patch)
tree7ca9630b0c3bf5c1bf27e7a3600a409bfb1a45ff
parent00b0b7484735d7ffbd8897613cfb96e1ba02f67b (diff)
zebra, ospf6d: Do not check if NULL for XCALLOC()
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r--ospf6d/ospf6_auth_trailer.c2
-rw-r--r--zebra/table_manager.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/ospf6d/ospf6_auth_trailer.c b/ospf6d/ospf6_auth_trailer.c
index 1095473f4a..1f3f87751a 100644
--- a/ospf6d/ospf6_auth_trailer.c
+++ b/ospf6d/ospf6_auth_trailer.c
@@ -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];
diff --git a/zebra/table_manager.c b/zebra/table_manager.c
index ffc7a48eb9..a3daca6c59 100644
--- a/zebra/table_manager.c
+++ b/zebra/table_manager.c
@@ -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;