diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-12-22 09:01:59 +0100 | 
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-12-22 09:01:59 +0100 | 
| commit | 13f3c7c679bbb7dd737c3fefa7d477c64f0871df (patch) | |
| tree | b079b31b116508256f7cb13f886e862c02210513 /zebra | |
| parent | e62c2f10bc91db9c8ac867c3401b42b88ae4a1cc (diff) | |
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>
Diffstat (limited to 'zebra')
| -rw-r--r-- | zebra/zebra_srv6_vty.c | 4 | 
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);  | 
