summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/tei.c
diff options
context:
space:
mode:
authorKarsten Keil <keil@b1-systems.de>2009-07-24 18:26:08 +0200
committerKarsten Keil <keil@b1-systems.de>2009-07-25 20:23:05 +0200
commitba2d6ccb1df6ebb2c1b2322518ce7be25c1e3469 (patch)
tree1c454520cbef80d0fdc314104766d2ff0ccd0212 /drivers/isdn/hisax/tei.c
parent3cad3da3ed9ece03704f7d67e038b8ae710fa312 (diff)
downloadtalos-op-linux-ba2d6ccb1df6ebb2c1b2322518ce7be25c1e3469.tar.gz
talos-op-linux-ba2d6ccb1df6ebb2c1b2322518ce7be25c1e3469.zip
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.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 =
{ST_TEI_IDVERIFY, EV_CHKREQ, tei_id_chk_req},
};
-#define TEI_FN_COUNT (sizeof(TeiFnList)/sizeof(struct FsmNode))
-
int __init
TeiNew(void)
{
@@ -456,7 +454,7 @@ TeiNew(void)
teifsm.event_count = TEI_EVENT_COUNT;
teifsm.strEvent = strTeiEvent;
teifsm.strState = strTeiState;
- return FsmNew(&teifsm, TeiFnList, TEI_FN_COUNT);
+ return FsmNew(&teifsm, TeiFnList, ARRAY_SIZE(TeiFnList));
}
void
OpenPOWER on IntegriCloud