From 76f014689093aa8eecc1061e13cc4f8694967a12 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 25 Feb 2019 19:43:09 +0000 Subject: *: do not check XMALLOC / XCALLOC for null ret They never return NULL Signed-off-by: Quentin Young --- bfdd/config.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'bfdd/config.c') diff --git a/bfdd/config.c b/bfdd/config.c index d1342eff1..17e155e41 100644 --- a/bfdd/config.c +++ b/bfdd/config.c @@ -574,8 +574,6 @@ struct peer_label *pl_new(const char *label, struct bfd_session *bs) struct peer_label *pl; pl = XCALLOC(MTYPE_BFDD_LABEL, sizeof(*pl)); - if (pl == NULL) - return NULL; if (strlcpy(pl->pl_label, label, sizeof(pl->pl_label)) > sizeof(pl->pl_label)) -- cgit v1.2.3