From 6a0b7e3970f3f4c729112a809665cc2b6a074037 Mon Sep 17 00:00:00 2001 From: Vengada Date: Fri, 27 Jan 2017 01:57:46 -0800 Subject: Cleanup some obfuscated code in next node handling. The values of next node can be simply assigned by dereferencing the pointer instead of obfuscating the dereference. Change-Id: I1f4a3d51b768960699010591410695473728d3a2 Signed-off-by: Vengada --- src/plugins/ioam/lib-vxlan-gpe/ioam_encap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/ioam/lib-vxlan-gpe/ioam_encap.c') diff --git a/src/plugins/ioam/lib-vxlan-gpe/ioam_encap.c b/src/plugins/ioam/lib-vxlan-gpe/ioam_encap.c index 4b18bfea533..1d15654464d 100644 --- a/src/plugins/ioam/lib-vxlan-gpe/ioam_encap.c +++ b/src/plugins/ioam/lib-vxlan-gpe/ioam_encap.c @@ -55,7 +55,7 @@ vxlan_gpe_encap_ioam_v4_two_inline (vlib_main_t * vm, vlib_buffer_t * b0, vlib_buffer_t * b1, u32 * next0, u32 * next1) { - next0[0] = next1[0] = VXLAN_GPE_ENCAP_IOAM_V4_NEXT_IP4_LOOKUP; + *next0 = *next1 = VXLAN_GPE_ENCAP_IOAM_V4_NEXT_IP4_LOOKUP; vxlan_gpe_encap_decap_ioam_v4_one_inline (vm, node, b0, next0, VXLAN_GPE_ENCAP_IOAM_V4_NEXT_DROP, 0 /* use_adj */ ); -- cgit 1.2.3-korg