diff options
Diffstat (limited to 'drivers/isdn/hisax/isdnl2.c')
-rw-r--r-- | drivers/isdn/hisax/isdnl2.c | 4 |
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 | |||
1628 | static void | 1626 | static void |
1629 | isdnl2_l1l2(struct PStack *st, int pr, void *arg) | 1627 | isdnl2_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 | ||
1842 | void | 1840 | void |