From 98d6b61183ecb15932fbdae96a60e0d0fcf97466 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Thu, 3 Jan 2019 09:30:00 -0500 Subject: Fix used-before-set in vl_api_bridge_flags_t_handler The aarch64 cross-compiler complains about this when building an optimized image. So we fix it... Change-Id: Ib2b2089c0534753d7d470311012fa0073ab27d1d Signed-off-by: Dave Barach --- src/vnet/l2/l2_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/l2/l2_api.c b/src/vnet/l2/l2_api.c index 9e3a47f772b..25f38a6d5b0 100644 --- a/src/vnet/l2/l2_api.c +++ b/src/vnet/l2/l2_api.c @@ -558,6 +558,7 @@ vl_api_bridge_flags_t_handler (vl_api_bridge_flags_t * mp) vlib_main_t *vm = vlib_get_main (); bd_main_t *bdm = &bd_main; vl_api_bridge_flags_reply_t *rmp; + u32 bitmap = 0; int rv = 0; bd_flags_t flags = bd_flags_decode (mp->flags); @@ -575,7 +576,7 @@ vl_api_bridge_flags_t_handler (vl_api_bridge_flags_t * mp) goto out; } - u32 bitmap = bd_set_flags (vm, bd_index, flags, mp->is_set); + bitmap = bd_set_flags (vm, bd_index, flags, mp->is_set); out: /* *INDENT-OFF* */ -- cgit 1.2.3-korg