aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2012-09-15 13:11:40 -0400
committerDavid S. Miller <davem@davemloft.net>2012-09-17 13:04:19 -0400
commitda3188801898f2fb8859c232554b100f2a0250f8 (patch)
treef18f6dbaf6e3a54182bec9d758ca5f23e38aa595
parent5ecf9eea2660c4fe894fabd3c3d0b64860fb0160 (diff)
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: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/llc/llc_station.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/llc/llc_station.c b/net/llc/llc_station.c
index 48c21184bf2..fe43158e06d 100644
--- a/net/llc/llc_station.c
+++ b/net/llc/llc_station.c
@@ -111,8 +111,8 @@ free:
111 111
112/* state transition for LLC_STATION_EV_RX_NULL_DSAP_XID_C event */ 112/* state transition for LLC_STATION_EV_RX_NULL_DSAP_XID_C event */
113static llc_station_action_t llc_stat_up_state_actions_2[] = { 113static llc_station_action_t llc_stat_up_state_actions_2[] = {
114 [0] = llc_station_ac_send_xid_r, 114 llc_station_ac_send_xid_r,
115 [1] = NULL, 115 NULL,
116}; 116};
117 117
118static struct llc_station_state_trans llc_stat_up_state_trans_2 = { 118static 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 122
123/* state transition for LLC_STATION_EV_RX_NULL_DSAP_TEST_C event */ 123/* state transition for LLC_STATION_EV_RX_NULL_DSAP_TEST_C event */
124static llc_station_action_t llc_stat_up_state_actions_3[] = { 124static llc_station_action_t llc_stat_up_state_actions_3[] = {
125 [0] = llc_station_ac_send_test_r, 125 llc_station_ac_send_test_r,
126 [1] = NULL, 126 NULL,
127}; 127};
128 128
129static struct llc_station_state_trans llc_stat_up_state_trans_3 = { 129static struct llc_station_state_trans llc_stat_up_state_trans_3 = {