diff options
author | Florin Coras <fcoras@cisco.com> | 2019-04-23 15:53:43 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-04-24 11:31:02 +0000 |
commit | 1219b2d071a273acbdbfb14a050bb3e275c0dd03 (patch) | |
tree | 1ddb08470c36897417d768efc7b9b5cd7bb179e4 /src/vnet/session/segment_manager.c | |
parent | b3ca33ff4836eff054250c2b7a40dc778f377ea7 (diff) |
session: remove unused fifo allo return value
Change-Id: I50a6bcc127e4b44becc4b694bdd3018ac9bfab5c
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/segment_manager.c')
-rw-r--r-- | src/vnet/session/segment_manager.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c index 7f7fa6d631a..2437f99098b 100644 --- a/src/vnet/session/segment_manager.c +++ b/src/vnet/session/segment_manager.c @@ -512,15 +512,14 @@ segment_manager_try_alloc_fifos (svm_fifo_segment_private_t * fifo_segment, int segment_manager_alloc_session_fifos (segment_manager_t * sm, svm_fifo_t ** rx_fifo, - svm_fifo_t ** tx_fifo, - u32 * fifo_segment_index) + svm_fifo_t ** tx_fifo) { svm_fifo_segment_private_t *fifo_segment = 0; int alloc_fail = 1, rv = 0, new_fs_index; segment_manager_properties_t *props; + u32 sm_index, fifo_segment_index; u8 added_a_segment = 0; u64 segment_handle; - u32 sm_index; props = segment_manager_properties_get (sm); @@ -549,11 +548,11 @@ alloc_check: ASSERT (rx_fifo && tx_fifo); sm_index = segment_manager_index (sm); - *fifo_segment_index = segment_manager_segment_index (sm, fifo_segment); + fifo_segment_index = segment_manager_segment_index (sm, fifo_segment); (*tx_fifo)->segment_manager = sm_index; (*rx_fifo)->segment_manager = sm_index; - (*tx_fifo)->segment_index = *fifo_segment_index; - (*rx_fifo)->segment_index = *fifo_segment_index; + (*tx_fifo)->segment_index = fifo_segment_index; + (*rx_fifo)->segment_index = fifo_segment_index; if (added_a_segment) { |