aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lacp/tx_machine.c
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2019-06-10 22:23:11 -0400
committerDamjan Marion <dmarion@me.com>2019-06-12 08:17:10 +0000
commit91c512913698ebe182c8da1d5d409f42a28dda3b (patch)
tree7983d6aaf05170a9f3d218f8d3ee43fb49aad209 /src/plugins/lacp/tx_machine.c
parent16ad61735efbf3f9933fdb9ef7987606ef060cfc (diff)
lacp: cleanup unnecessary pointer cast
Change-Id: Idc3a7588dc73e7180a15b6ace3684d3c12986b9d Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src/plugins/lacp/tx_machine.c')
-rw-r--r--src/plugins/lacp/tx_machine.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/lacp/tx_machine.c b/src/plugins/lacp/tx_machine.c
index 4cc4e68a103..b252485d73c 100644
--- a/src/plugins/lacp/tx_machine.c
+++ b/src/plugins/lacp/tx_machine.c
@@ -38,8 +38,8 @@ lacp_machine_t lacp_tx_machine = {
int
lacp_tx_action_transmit (void *p1, void *p2)
{
- vlib_main_t *vm = (vlib_main_t *) p1;
- slave_if_t *sif = (slave_if_t *) p2;
+ vlib_main_t *vm = p1;
+ slave_if_t *sif = p2;
lacp_main_t *lm = &lacp_main;
f64 now = vlib_time_now (lm->vlib_main);
@@ -70,8 +70,7 @@ format_tx_event (u8 * s, va_list * args)
{.str = NULL}
};
int e = va_arg (*args, int);
- lacp_event_struct *event_entry =
- (lacp_event_struct *) & lacp_tx_event_array;
+ lacp_event_struct *event_entry = lacp_tx_event_array;
if (e >= (sizeof (lacp_tx_event_array) / sizeof (*event_entry)))
s = format (s, "Bad event %d", e);