From 13f3c7c679bbb7dd737c3fefa7d477c64f0871df Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Sun, 22 Dec 2024 09:01:59 +0100 Subject: [PATCH] zebra: Remove tests for `srv6_locator_alloc` failure `srv6_locator_alloc` can never fail. Let's remove the tests for allocation failure. Signed-off-by: Carmine Scarpitta --- zebra/zebra_srv6_vty.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c index 5a8052414902..6867b1bbb6c4 100644 --- a/zebra/zebra_srv6_vty.c +++ b/zebra/zebra_srv6_vty.c @@ -338,10 +338,6 @@ DEFUN_NOSH (srv6_locator, } locator = srv6_locator_alloc(argv[1]->arg); - if (!locator) { - vty_out(vty, "%% Alloc failed\n"); - return CMD_WARNING_CONFIG_FAILED; - } locator->status_up = true; VTY_PUSH_CONTEXT(SRV6_LOC_NODE, locator);