summaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/mpls_fib.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-03-15 01:28:31 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-15 16:19:11 +0000
commit9d676afbb779da5186cb3869925ef6d7d3d04db1 (patch)
tree299d7c1d9a1fbf04d4aa08ec279fcf7e0d952d8f /src/vnet/fib/mpls_fib.h
parent0856b97b494ea54f3daa6e0c31a2f882bf23a551 (diff)
No vector allocation during buffer copy
Change-Id: I7e8556af833ca0e00fadc96dcd2077ff1104541b Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/fib/mpls_fib.h')
-rw-r--r--src/vnet/fib/mpls_fib.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vnet/fib/mpls_fib.h b/src/vnet/fib/mpls_fib.h
index e2ef9253a9d..779decaa7ef 100644
--- a/src/vnet/fib/mpls_fib.h
+++ b/src/vnet/fib/mpls_fib.h
@@ -28,9 +28,7 @@
static inline mpls_fib_t*
mpls_fib_get (fib_node_index_t index)
{
- if (!pool_is_free_index(mpls_main.fibs, index))
- return (&(pool_elt_at_index(mpls_main.fibs, index)->mpls));
- return (NULL);
+ return (&(pool_elt_at_index(mpls_main.fibs, index)->mpls));
}
extern u32 mpls_fib_table_find_or_create_and_lock(u32 table_id);