misc: refactor clib_bitmap_foreach macro
Type: refactor
Change-Id: I077110e1a422722e20aa546a6f3224c06ab0cde5
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vnet/span/span_api.c b/src/vnet/span/span_api.c
index dacbe2e..96d1fac 100644
--- a/src/vnet/span/span_api.c
+++ b/src/vnet/span/span_api.c
@@ -86,7 +86,7 @@
clib_bitmap_t *b;
u32 i;
b = clib_bitmap_dup_or (rxm->mirror_ports, txm->mirror_ports);
- clib_bitmap_foreach (i, b, (
+ clib_bitmap_foreach (i, b)
{
rmp = vl_msg_api_alloc (sizeof (*rmp));
clib_memset (rmp, 0, sizeof (*rmp));
@@ -100,7 +100,7 @@
rmp->is_l2 = mp->is_l2;
vl_api_send_msg (reg, (u8 *) rmp);
- }));
+ }
clib_bitmap_free (b);
}
}