Skip to content

Commit

Permalink
llc2: Remove explicit indexing of state action arrays
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
bwhacks authored and davem330 committed Sep 17, 2012
1 parent 5ecf9ee commit da31888
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/llc/llc_station.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
static llc_station_action_t llc_stat_up_state_actions_2[] = {
[0] = llc_station_ac_send_xid_r,
[1] = NULL,
llc_station_ac_send_xid_r,
NULL,
};

static struct llc_station_state_trans llc_stat_up_state_trans_2 = {
Expand All @@ -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 */
static llc_station_action_t llc_stat_up_state_actions_3[] = {
[0] = llc_station_ac_send_test_r,
[1] = NULL,
llc_station_ac_send_test_r,
NULL,
};

static struct llc_station_state_trans llc_stat_up_state_trans_3 = {
Expand Down

0 comments on commit da31888

Please sign in to comment.