summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_srv6_vty.c')
-rw-r--r--zebra/zebra_srv6_vty.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c
index 5a80524149..6867b1bbb6 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);