Skip to content

Commit

Permalink
zebra: Remove tests for srv6_locator_alloc failure
Browse files Browse the repository at this point in the history
`srv6_locator_alloc` can never fail. Let's remove the tests for
allocation failure.

Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
cscarpitta committed Dec 22, 2024
1 parent e62c2f1 commit 13f3c7c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions zebra/zebra_srv6_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13f3c7c

Please sign in to comment.