summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-11-12 16:13:49 +0200
committerFlorin Coras <florin.coras@gmail.com>2018-11-13 18:03:43 +0000
commitb688fb129746c040f5e6f880de592e53aff772d9 (patch)
tree2565d59edac621bec7398e74d1325f88ed4abf28 /src
parent35a5ee16eec2b41fb7d584cab3c02a6942a3fcd7 (diff)
vlib:remove unused argument
Change-Id: I88c3d3e516401bb1c84991515cd701c156ae19dd Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vlib/buffer.c2
-rw-r--r--src/vlib/buffer_funcs.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/vlib/buffer.c b/src/vlib/buffer.c
index ff91d3b920c..cc852358541 100644
--- a/src/vlib/buffer.c
+++ b/src/vlib/buffer.c
@@ -842,7 +842,7 @@ vlib_buffer_chain_append_data_with_alloc (vlib_main_t * vm,
vlib_buffer_alloc_from_free_list (vm, &l->next_buffer, 1,
free_list_index))
return copied;
- *last = l = vlib_buffer_chain_buffer (vm, first, l, l->next_buffer);
+ *last = l = vlib_buffer_chain_buffer (vm, l, l->next_buffer);
max = n_buffer_bytes - l->current_length - l->current_data;
}
diff --git a/src/vlib/buffer_funcs.h b/src/vlib/buffer_funcs.h
index 6106b7984a2..ce62c8b83fa 100644
--- a/src/vlib/buffer_funcs.h
+++ b/src/vlib/buffer_funcs.h
@@ -944,9 +944,7 @@ vlib_buffer_chain_init (vlib_buffer_t * first)
/* The provided next_bi buffer index is appended to the end of the packet. */
always_inline vlib_buffer_t *
-vlib_buffer_chain_buffer (vlib_main_t * vm,
- vlib_buffer_t * first,
- vlib_buffer_t * last, u32 next_bi)
+vlib_buffer_chain_buffer (vlib_main_t * vm, vlib_buffer_t * last, u32 next_bi)
{
vlib_buffer_t *next_buffer = vlib_get_buffer (vm, next_bi);
last->next_buffer = next_bi;