diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 19:43:09 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 23:00:44 +0000 | 
| commit | 76f014689093aa8eecc1061e13cc4f8694967a12 (patch) | |
| tree | d68df7e97b46f672cd944e89e62d823149781d07 /bfdd/config.c | |
| parent | 97b5d752d7af198d0b2881b5a3b2e61f2b4921e5 (diff) | |
*: do not check XMALLOC / XCALLOC for null ret
They never return NULL
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bfdd/config.c')
| -rw-r--r-- | bfdd/config.c | 2 | 
1 files changed, 0 insertions, 2 deletions
diff --git a/bfdd/config.c b/bfdd/config.c index d1342eff1e..17e155e41d 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))  | 
