summaryrefslogtreecommitdiffstats
path: root/pimd/pim_static.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-06-14 01:36:54 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-06-20 01:07:12 +0200
commit11884868d4b091a7e82e80258d676122239ad6b8 (patch)
treef9810a5bc65c7d64fefa2f3259b2e0ab9ad4d3e5 /pimd/pim_static.c
parentlib: Do not blindly set the _read and _write pointers to NULL (diff)
downloadfrr-11884868d4b091a7e82e80258d676122239ad6b8.tar.xz
frr-11884868d4b091a7e82e80258d676122239ad6b8.zip
pimd: ALLOC functions cannot fail.
There is no need to check for ALLOC function failures in the code base. If we cannot get more memory we assert. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_static.c')
-rw-r--r--pimd/pim_static.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/pimd/pim_static.c b/pimd/pim_static.c
index 442b22e06..62c3216e8 100644
--- a/pimd/pim_static.c
+++ b/pimd/pim_static.c
@@ -124,9 +124,6 @@ int pim_static_add(struct pim_instance *pim, struct interface *iif,
* back if it fails.
*/
original_s_route = static_route_alloc();
- if (!original_s_route) {
- return -5;
- }
memcpy(original_s_route, s_route,
sizeof(struct static_route));