diff options
Diffstat (limited to 'drivers/isdn/hardware')
-rw-r--r-- | drivers/isdn/hardware/eicon/message.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/os_4bri.c | 3 |
2 files changed, 2 insertions, 5 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 */ |
diff --git a/drivers/isdn/hardware/eicon/os_4bri.c b/drivers/isdn/hardware/eicon/os_4bri.c index c964b8d91ada..cb7616c5b60a 100644 --- a/drivers/isdn/hardware/eicon/os_4bri.c +++ b/drivers/isdn/hardware/eicon/os_4bri.c | |||
@@ -149,8 +149,7 @@ int diva_4bri_init_card(diva_os_xdi_adapter_t * a) | |||
149 | diva_os_xdi_adapter_t *diva_current; | 149 | diva_os_xdi_adapter_t *diva_current; |
150 | diva_os_xdi_adapter_t *adapter_list[4]; | 150 | diva_os_xdi_adapter_t *adapter_list[4]; |
151 | PISDN_ADAPTER Slave; | 151 | PISDN_ADAPTER Slave; |
152 | unsigned long bar_length[sizeof(_4bri_bar_length) / | 152 | unsigned long bar_length[ARRAY_SIZE(_4bri_bar_length)]; |
153 | sizeof(_4bri_bar_length[0])]; | ||
154 | int v2 = _4bri_is_rev_2_card(a->CardOrdinal); | 153 | int v2 = _4bri_is_rev_2_card(a->CardOrdinal); |
155 | int tasks = _4bri_is_rev_2_bri_card(a->CardOrdinal) ? 1 : MQ_INSTANCE_COUNT; | 154 | int tasks = _4bri_is_rev_2_bri_card(a->CardOrdinal) ? 1 : MQ_INSTANCE_COUNT; |
156 | int factor = (tasks == 1) ? 1 : 2; | 155 | int factor = (tasks == 1) ? 1 : 2; |