]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
llc2: Remove explicit indexing of state action arrays
authorBen Hutchings <ben@decadent.org.uk>
Sat, 15 Sep 2012 17:11:40 +0000 (17:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2012 17:04:19 +0000 (13:04 -0400)
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>
net/llc/llc_station.c

index 48c21184bf2ca185983e9c1cc950021f084119df..fe43158e06de2c077eeaa55fe46946b593136c26 100644 (file)
@@ -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 = {