diff options
author | Karsten Keil <keil@b1-systems.de> | 2009-07-24 12:26:08 -0400 |
---|---|---|
committer | Karsten Keil <keil@b1-systems.de> | 2009-07-25 14:23:05 -0400 |
commit | ba2d6ccb1df6ebb2c1b2322518ce7be25c1e3469 (patch) | |
tree | 1c454520cbef80d0fdc314104766d2ff0ccd0212 /drivers/isdn/hisax/isdnl3.c | |
parent | 3cad3da3ed9ece03704f7d67e038b8ae710fa312 (diff) |
ISDN: ARRAY_SIZE changes
These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/
Modified some of the changes to avoid the extra define.
Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Karsten Keil <keil@b1-systems.de>
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 935f23356fa..06766022d3a 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 |