提交 da318880 编写于 作者: B Ben Hutchings 提交者: David S. Miller

llc2: Remove explicit indexing of state action arrays

These arrays are accessed by iteration in
llc_exec_station_trans_actions().  There must not be any zero-filled
gaps in them, so the explicit indices are pointless.
Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5ecf9eea
...@@ -111,8 +111,8 @@ static int llc_station_ac_send_test_r(struct sk_buff *skb) ...@@ -111,8 +111,8 @@ static int llc_station_ac_send_test_r(struct sk_buff *skb)
/* state transition for LLC_STATION_EV_RX_NULL_DSAP_XID_C event */ /* state transition for LLC_STATION_EV_RX_NULL_DSAP_XID_C event */
static llc_station_action_t llc_stat_up_state_actions_2[] = { static llc_station_action_t llc_stat_up_state_actions_2[] = {
[0] = llc_station_ac_send_xid_r, llc_station_ac_send_xid_r,
[1] = NULL, NULL,
}; };
static struct llc_station_state_trans llc_stat_up_state_trans_2 = { static struct llc_station_state_trans llc_stat_up_state_trans_2 = {
...@@ -122,8 +122,8 @@ static struct llc_station_state_trans llc_stat_up_state_trans_2 = { ...@@ -122,8 +122,8 @@ static struct llc_station_state_trans llc_stat_up_state_trans_2 = {
/* state transition for LLC_STATION_EV_RX_NULL_DSAP_TEST_C event */ /* state transition for LLC_STATION_EV_RX_NULL_DSAP_TEST_C event */
static llc_station_action_t llc_stat_up_state_actions_3[] = { static llc_station_action_t llc_stat_up_state_actions_3[] = {
[0] = llc_station_ac_send_test_r, llc_station_ac_send_test_r,
[1] = NULL, NULL,
}; };
static struct llc_station_state_trans llc_stat_up_state_trans_3 = { static struct llc_station_state_trans llc_stat_up_state_trans_3 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册