X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fpunt.c;fp=src%2Fvnet%2Fip%2Fpunt.c;h=e1c13f62aff1b91f1184cc47a920bbc15cc4609a;hb=35ac601e25ee79f08c0d9611508148cd8aeb2486;hp=6e2fcebf69e437a764815e5ff872044912b35336;hpb=561d1caad7ab9b5f75a88d3a71fa2150212eb317;p=vpp.git diff --git a/src/vnet/ip/punt.c b/src/vnet/ip/punt.c index 6e2fcebf69e..e1c13f62aff 100644 --- a/src/vnet/ip/punt.c +++ b/src/vnet/ip/punt.c @@ -807,7 +807,6 @@ punt_cli (vlib_main_t * vm, if (error) { clib_error_report (error); - goto done; } done: @@ -877,10 +876,6 @@ punt_socket_register_cmd (vlib_main_t * vm, error = vnet_punt_socket_add (vm, 1, is_ipv4, protocol, port, (char *) socket_name); - if (error) - { - goto done; - } done: return error; } @@ -931,10 +926,6 @@ punt_socket_deregister_cmd (vlib_main_t * vm, } error = vnet_punt_socket_del (vm, is_ipv4, protocol, port); - if (error) - { - goto done; - } done: return error; }