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/tei.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/tei.c')
-rw-r--r-- | drivers/isdn/hisax/tei.c | 4 |
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 | |||
452 | int __init | 450 | int __init |
453 | TeiNew(void) | 451 | TeiNew(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 | ||
462 | void | 460 | void |