aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/l2
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-01-03 09:30:00 -0500
committerDave Barach <dave@barachs.net>2019-01-03 09:51:42 -0500
commit98d6b61183ecb15932fbdae96a60e0d0fcf97466 (patch)
tree23b764a729d801f9d13ba0a559adb9a96597b4a7 /src/vnet/l2
parentd8e94ba8231138e86f31c745c82a0adf54531164 (diff)
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 <dave@barachs.net>
Diffstat (limited to 'src/vnet/l2')
-rw-r--r--src/vnet/l2/l2_api.c3
1 files changed, 2 insertions, 1 deletions
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* */