diff options
author | Dave Barach <dave@barachs.net> | 2019-01-03 09:30:00 -0500 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2019-01-03 09:51:42 -0500 |
commit | 98d6b61183ecb15932fbdae96a60e0d0fcf97466 (patch) | |
tree | 23b764a729d801f9d13ba0a559adb9a96597b4a7 /src/vnet | |
parent | d8e94ba8231138e86f31c745c82a0adf54531164 (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')
-rw-r--r-- | src/vnet/l2/l2_api.c | 3 |
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* */ |