diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 20:43:09 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-26 00:00:44 +0100 |
commit | 76f014689093aa8eecc1061e13cc4f8694967a12 (patch) | |
tree | d68df7e97b46f672cd944e89e62d823149781d07 /ospf6d | |
parent | *: use array_size instead of raw division (diff) | |
download | frr-76f014689093aa8eecc1061e13cc4f8694967a12.tar.xz frr-76f014689093aa8eecc1061e13cc4f8694967a12.zip |
*: do not check XMALLOC / XCALLOC for null ret
They never return NULL
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_lsdb.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ospf6d/ospf6_lsdb.c b/ospf6d/ospf6_lsdb.c index 5e02c0c91..b551dbdfa 100644 --- a/ospf6d/ospf6_lsdb.c +++ b/ospf6d/ospf6_lsdb.c @@ -39,10 +39,6 @@ struct ospf6_lsdb *ospf6_lsdb_create(void *data) struct ospf6_lsdb *lsdb; lsdb = XCALLOC(MTYPE_OSPF6_LSDB, sizeof(struct ospf6_lsdb)); - if (lsdb == NULL) { - zlog_warn("Can't malloc lsdb"); - return NULL; - } memset(lsdb, 0, sizeof(struct ospf6_lsdb)); lsdb->data = data; |