aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-03-05 15:57:52 -0800
committerNeale Ranns <nranns@cisco.com>2019-03-06 07:13:47 +0000
commit35ac601e25ee79f08c0d9611508148cd8aeb2486 (patch)
treef73b93a0353298764da3ada15b6d1416a3702250 /src
parent561d1caad7ab9b5f75a88d3a71fa2150212eb317 (diff)
punt.c -- coverity woes
Coverity complains about identical code is executed for if and else branch. Clean them up by removing the useless code. Change-Id: Ie53f1dff055440ab2c3c3d2ea91edb1e50204b38 Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ip/punt.c9
1 files changed, 0 insertions, 9 deletions
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;
}