diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-06-29 14:18:22 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-06-29 21:27:50 +0200 |
commit | e702605d80c26e94681b282d97c726df6c6871da (patch) | |
tree | 1e2ec52f83c1d9693b68fef3fdc89dd470ba4f54 /bfdd | |
parent | tools: Add coccinelle script for checking against XMALLOC/XCALLOC NULLs (diff) | |
download | frr-e702605d80c26e94681b282d97c726df6c6871da.tar.xz frr-e702605d80c26e94681b282d97c726df6c6871da.zip |
*: Do not check for XMALLOC/XCALLOC against NULLs
We don't check this pattern anywhere in the code basically, so let's
unify the code.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bfdd')
-rw-r--r-- | bfdd/dplane.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bfdd/dplane.c b/bfdd/dplane.c index 6fb301d46..4b7f9ba7a 100644 --- a/bfdd/dplane.c +++ b/bfdd/dplane.c @@ -651,8 +651,6 @@ static struct bfd_dplane_ctx *bfd_dplane_ctx_new(int sock) struct bfd_dplane_ctx *bdc; bdc = XCALLOC(MTYPE_BFDD_DPLANE_CTX, sizeof(*bdc)); - if (bdc == NULL) - return NULL; bdc->sock = sock; bdc->inbuf = stream_new(BFD_DPLANE_CLIENT_BUF_SIZE); |