aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lacp/node.h
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/node.h
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/node.h')
-rw-r--r--src/plugins/lacp/node.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/lacp/node.h b/src/plugins/lacp/node.h
index 8bc7cf9329c..59af66f20d0 100644
--- a/src/plugins/lacp/node.h
+++ b/src/plugins/lacp/node.h
@@ -186,8 +186,7 @@ format_rx_sm_state (u8 * s, va_list * args)
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_rx_sm_state_array;
+ lacp_state_struct *state_entry = lacp_rx_sm_state_array;
if (state >= (sizeof (lacp_rx_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);
@@ -207,8 +206,7 @@ format_tx_sm_state (u8 * s, va_list * args)
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_tx_sm_state_array;
+ lacp_state_struct *state_entry = lacp_tx_sm_state_array;
if (state >= (sizeof (lacp_tx_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);
@@ -228,8 +226,7 @@ format_mux_sm_state (u8 * s, va_list * args)
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_mux_sm_state_array;
+ lacp_state_struct *state_entry = lacp_mux_sm_state_array;
if (state >= (sizeof (lacp_mux_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);
@@ -249,8 +246,7 @@ format_ptx_sm_state (u8 * s, va_list * args)
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_ptx_sm_state_array;
+ lacp_state_struct *state_entry = lacp_ptx_sm_state_array;
if (state >= (sizeof (lacp_ptx_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);