Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vmxnet3: fix clang initialization error
[vpp.git]
/
src
/
vnet
/
vxlan
/
vxlan.c
diff --git
a/src/vnet/vxlan/vxlan.c
b/src/vnet/vxlan/vxlan.c
index
f0312be
..
ce56554
100644
(file)
--- a/
src/vnet/vxlan/vxlan.c
+++ b/
src/vnet/vxlan/vxlan.c
@@
-851,30
+851,19
@@
show_vxlan_tunnel_command_fn (vlib_main_t * vm,
unformat_input_t * input,
vlib_cli_command_t * cmd)
{
unformat_input_t * input,
vlib_cli_command_t * cmd)
{
- unformat_input_t _line_input, *line_input = &_line_input;
vxlan_main_t *vxm = &vxlan_main;
vxlan_tunnel_t *t;
int raw = 0;
vxlan_main_t *vxm = &vxlan_main;
vxlan_tunnel_t *t;
int raw = 0;
- clib_error_t *parse_error = NULL;
-
- /* Get a line of input. */
- if (!unformat_user (input, unformat_line_input, line_input))
- return 0;
- while (unformat_check_input (
line_
input) != UNFORMAT_END_OF_INPUT)
+ while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
{
- if (unformat (
line_
input, "raw"))
+ if (unformat (input, "raw"))
raw = 1;
else
raw = 1;
else
-
parse_error =
clib_error_return (0, "parse error: '%U'",
-
format_unformat_error, line_
input);
+
return
clib_error_return (0, "parse error: '%U'",
+
format_unformat_error,
input);
}
}
- unformat_free (line_input);
-
- if (parse_error)
- return parse_error;
-
if (pool_elts (vxm->tunnels) == 0)
vlib_cli_output (vm, "No vxlan tunnels configured...");
if (pool_elts (vxm->tunnels) == 0)
vlib_cli_output (vm, "No vxlan tunnels configured...");