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 <cscarpit@cisco.com>
This commit is contained in:
Carmine Scarpitta 2024-12-22 09:01:59 +01:00
parent e62c2f10bc
commit 13f3c7c679

View File

@ -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);