summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-06-29 14:18:22 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-06-29 21:27:50 +0200
commite702605d80c26e94681b282d97c726df6c6871da (patch)
tree1e2ec52f83c1d9693b68fef3fdc89dd470ba4f54 /bfdd
parenttools: Add coccinelle script for checking against XMALLOC/XCALLOC NULLs (diff)
downloadfrr-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.c2
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);