diff options
Diffstat (limited to 'drivers/isdn/hisax/isdnl3.c')
-rw-r--r-- | drivers/isdn/hisax/isdnl3.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/isdnl3.c b/drivers/isdn/hisax/isdnl3.c index 935f23356fae..06766022d3ae 100644 --- a/drivers/isdn/hisax/isdnl3.c +++ b/drivers/isdn/hisax/isdnl3.c | |||
@@ -543,8 +543,6 @@ static struct FsmNode L3FnList[] __initdata = | |||
543 | }; | 543 | }; |
544 | /* *INDENT-ON* */ | 544 | /* *INDENT-ON* */ |
545 | 545 | ||
546 | #define L3_FN_COUNT (sizeof(L3FnList)/sizeof(struct FsmNode)) | ||
547 | |||
548 | void | 546 | void |
549 | l3_msg(struct PStack *st, int pr, void *arg) | 547 | l3_msg(struct PStack *st, int pr, void *arg) |
550 | { | 548 | { |
@@ -587,7 +585,7 @@ Isdnl3New(void) | |||
587 | l3fsm.event_count = L3_EVENT_COUNT; | 585 | l3fsm.event_count = L3_EVENT_COUNT; |
588 | l3fsm.strEvent = strL3Event; | 586 | l3fsm.strEvent = strL3Event; |
589 | l3fsm.strState = strL3State; | 587 | l3fsm.strState = strL3State; |
590 | return FsmNew(&l3fsm, L3FnList, L3_FN_COUNT); | 588 | return FsmNew(&l3fsm, L3FnList, ARRAY_SIZE(L3FnList)); |
591 | } | 589 | } |
592 | 590 | ||
593 | void | 591 | void |