aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/isdnl2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/hisax/isdnl2.c')
-rw-r--r--drivers/isdn/hisax/isdnl2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/isdnl2.c b/drivers/isdn/hisax/isdnl2.c
index 3446f249d675..7b9496a63b5f 100644
--- a/drivers/isdn/hisax/isdnl2.c
+++ b/drivers/isdn/hisax/isdnl2.c
@@ -1623,8 +1623,6 @@ static struct FsmNode L2FnList[] __initdata =
1623 {ST_L2_8, EV_L1_DEACTIVATE, l2_persistent_da}, 1623 {ST_L2_8, EV_L1_DEACTIVATE, l2_persistent_da},
1624}; 1624};
1625 1625
1626#define L2_FN_COUNT (sizeof(L2FnList)/sizeof(struct FsmNode))
1627
1628static void 1626static void
1629isdnl2_l1l2(struct PStack *st, int pr, void *arg) 1627isdnl2_l1l2(struct PStack *st, int pr, void *arg)
1630{ 1628{
@@ -1836,7 +1834,7 @@ Isdnl2New(void)
1836 l2fsm.event_count = L2_EVENT_COUNT; 1834 l2fsm.event_count = L2_EVENT_COUNT;
1837 l2fsm.strEvent = strL2Event; 1835 l2fsm.strEvent = strL2Event;
1838 l2fsm.strState = strL2State; 1836 l2fsm.strState = strL2State;
1839 return FsmNew(&l2fsm, L2FnList, L2_FN_COUNT); 1837 return FsmNew(&l2fsm, L2FnList, ARRAY_SIZE(L2FnList));
1840} 1838}
1841 1839
1842void 1840void