aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/tei.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/hisax/tei.c')
-rw-r--r--drivers/isdn/hisax/tei.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/tei.c b/drivers/isdn/hisax/tei.c
index ceb0df92fd3e..6e65424f1f04 100644
--- a/drivers/isdn/hisax/tei.c
+++ b/drivers/isdn/hisax/tei.c
@@ -447,8 +447,6 @@ static struct FsmNode TeiFnList[] __initdata =
447 {ST_TEI_IDVERIFY, EV_CHKREQ, tei_id_chk_req}, 447 {ST_TEI_IDVERIFY, EV_CHKREQ, tei_id_chk_req},
448}; 448};
449 449
450#define TEI_FN_COUNT (sizeof(TeiFnList)/sizeof(struct FsmNode))
451
452int __init 450int __init
453TeiNew(void) 451TeiNew(void)
454{ 452{
@@ -456,7 +454,7 @@ TeiNew(void)
456 teifsm.event_count = TEI_EVENT_COUNT; 454 teifsm.event_count = TEI_EVENT_COUNT;
457 teifsm.strEvent = strTeiEvent; 455 teifsm.strEvent = strTeiEvent;
458 teifsm.strState = strTeiState; 456 teifsm.strState = strTeiState;
459 return FsmNew(&teifsm, TeiFnList, TEI_FN_COUNT); 457 return FsmNew(&teifsm, TeiFnList, ARRAY_SIZE(TeiFnList));
460} 458}
461 459
462void 460void