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/hardware/eicon/message.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/hardware/eicon/message.c')
-rw-r--r-- | drivers/isdn/hardware/eicon/message.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/hardware/eicon/message.c b/drivers/isdn/hardware/eicon/message.c index 31f91c18c698..27d5dd68f4fb 100644 --- a/drivers/isdn/hardware/eicon/message.c +++ b/drivers/isdn/hardware/eicon/message.c | |||
@@ -551,9 +551,7 @@ word api_put(APPL * appl, CAPI_MSG * msg) | |||
551 | dbug(1,dprintf("com=%x",msg->header.command)); | 551 | dbug(1,dprintf("com=%x",msg->header.command)); |
552 | 552 | ||
553 | for(j=0;j<MAX_MSG_PARMS+1;j++) msg_parms[j].length = 0; | 553 | for(j=0;j<MAX_MSG_PARMS+1;j++) msg_parms[j].length = 0; |
554 | for(i=0, ret = _BAD_MSG; | 554 | for(i=0, ret = _BAD_MSG; i < ARRAY_SIZE(ftable); i++) { |
555 | i<(sizeof(ftable)/sizeof(struct _ftable)); | ||
556 | i++) { | ||
557 | 555 | ||
558 | if(ftable[i].command==msg->header.command) { | 556 | if(ftable[i].command==msg->header.command) { |
559 | /* break loop if the message is correct, otherwise continue scan */ | 557 | /* break loop if the message is correct, otherwise continue scan */ |