diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2018-08-13 14:56:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-13 14:56:56 -0400 |
| commit | cd22c8ca74597aa27cb11dd28b613d53c0a36abe (patch) | |
| tree | 3e51217c34b49df896e84bf63f80d65a5c5a270d /zebra/zebra_mpls.c | |
| parent | 5487152318c7f56867a027f7214c849f6fb23e5c (diff) | |
| parent | e8c8f2e064c674d1c0935aaf04091c97e117c62f (diff) | |
Merge pull request #2820 from opensourcerouting/err-prep
remove alloc return value checks + minor babeld cleanup
Diffstat (limited to 'zebra/zebra_mpls.c')
| -rw-r--r-- | zebra/zebra_mpls.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index cfe208d35b..424a11546d 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -550,8 +550,6 @@ static zebra_fec_t *fec_add(struct route_table *table, struct prefix *p, if (!fec) { fec = XCALLOC(MTYPE_FEC, sizeof(zebra_fec_t)); - if (!fec) - return NULL; rn->info = fec; fec->rn = rn; @@ -1181,8 +1179,6 @@ static zebra_nhlfe_t *nhlfe_add(zebra_lsp_t *lsp, enum lsp_types_t lsp_type, return NULL; nhlfe = XCALLOC(MTYPE_NHLFE, sizeof(zebra_nhlfe_t)); - if (!nhlfe) - return NULL; nhlfe->lsp = lsp; nhlfe->type = lsp_type; |
