Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da318880 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

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: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5ecf9eea
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -111,8 +111,8 @@ free:

/* 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 = {
@@ -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 = {