Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: dgap: remove unnecessary brackets

This patch removes unnecessary brackets when dealing with
unary operators like '&'.
Done with coccinelle semantic patch:

@@
expression e;
@@

(
- &(e)
+ &e
)

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ioana Ciornei and committed by
Greg Kroah-Hartman
44209c93 18122553

+95 -95
+95 -95
drivers/staging/dgap/dgap.c
··· 1509 1509 1510 1510 rmask = ch->ch_rsize - 1; 1511 1511 1512 - head = readw(&(bs->rx_head)); 1512 + head = readw(&bs->rx_head); 1513 1513 head &= rmask; 1514 - tail = readw(&(bs->rx_tail)); 1514 + tail = readw(&bs->rx_tail); 1515 1515 tail &= rmask; 1516 1516 1517 1517 data_len = (head - tail) & rmask; 1518 1518 1519 1519 if (data_len == 0) { 1520 - writeb(1, &(bs->idata)); 1520 + writeb(1, &bs->idata); 1521 1521 spin_unlock_irqrestore(&ch->ch_lock, lock_flags2); 1522 1522 spin_unlock_irqrestore(&bd->bd_lock, lock_flags); 1523 1523 return; ··· 1532 1532 !(ch->ch_tun.un_flags & UN_ISOPEN) || 1533 1533 !(tp->termios.c_cflag & CREAD) || 1534 1534 (ch->ch_tun.un_flags & UN_CLOSING)) { 1535 - writew(head, &(bs->rx_tail)); 1536 - writeb(1, &(bs->idata)); 1535 + writew(head, &bs->rx_tail); 1536 + writeb(1, &bs->idata); 1537 1537 spin_unlock_irqrestore(&ch->ch_lock, lock_flags2); 1538 1538 spin_unlock_irqrestore(&bd->bd_lock, lock_flags); 1539 1539 return; ··· 1543 1543 * If we are throttled, simply don't read any data. 1544 1544 */ 1545 1545 if (ch->ch_flags & CH_RXBLOCK) { 1546 - writeb(1, &(bs->idata)); 1546 + writeb(1, &bs->idata); 1547 1547 spin_unlock_irqrestore(&ch->ch_lock, lock_flags2); 1548 1548 spin_unlock_irqrestore(&bd->bd_lock, lock_flags); 1549 1549 return; ··· 1552 1552 /* 1553 1553 * Ignore oruns. 1554 1554 */ 1555 - tmpchar = readb(&(bs->orun)); 1555 + tmpchar = readb(&bs->orun); 1556 1556 if (tmpchar) { 1557 1557 ch->ch_err_overrun++; 1558 - writeb(0, &(bs->orun)); 1558 + writeb(0, &bs->orun); 1559 1559 } 1560 1560 1561 1561 /* Decide how much data we can send into the tty layer */ ··· 1590 1590 * space to put the data right now. 1591 1591 */ 1592 1592 if (!ld->ops->receive_buf) { 1593 - writew(head, &(bs->rx_tail)); 1593 + writew(head, &bs->rx_tail); 1594 1594 len = 0; 1595 1595 } 1596 1596 } 1597 1597 1598 1598 if (len <= 0) { 1599 - writeb(1, &(bs->idata)); 1599 + writeb(1, &bs->idata); 1600 1600 spin_unlock_irqrestore(&ch->ch_lock, lock_flags2); 1601 1601 spin_unlock_irqrestore(&bd->bd_lock, lock_flags); 1602 1602 if (ld) ··· 1629 1629 tail &= rmask; 1630 1630 } 1631 1631 1632 - writew(tail, &(bs->rx_tail)); 1633 - writeb(1, &(bs->idata)); 1632 + writew(tail, &bs->rx_tail); 1633 + writeb(1, &bs->idata); 1634 1634 ch->ch_rxcount += len; 1635 1635 1636 1636 /* ··· 1839 1839 eaddr = (struct ev_t __iomem *)(vaddr + EVBUF); 1840 1840 1841 1841 /* Get our head and tail */ 1842 - head = readw(&(eaddr->ev_head)); 1843 - tail = readw(&(eaddr->ev_tail)); 1842 + head = readw(&eaddr->ev_head); 1843 + tail = readw(&eaddr->ev_tail); 1844 1844 1845 1845 /* 1846 1846 * Forget it if pointers out of range. ··· 1915 1915 if (ch->ch_flags & CH_RACTIVE) 1916 1916 ch->ch_flags |= CH_RENABLE; 1917 1917 else 1918 - writeb(1, &(bs->idata)); 1918 + writeb(1, &bs->idata); 1919 1919 1920 1920 if (ch->ch_flags & CH_RWAIT) { 1921 1921 ch->ch_flags &= ~CH_RWAIT; ··· 1982 1982 tail = (tail + 4) & (EVMAX - EVSTART - 4); 1983 1983 } 1984 1984 1985 - writew(tail, &(eaddr->ev_tail)); 1985 + writew(tail, &eaddr->ev_tail); 1986 1986 spin_unlock_irqrestore(&bd->bd_lock, lock_flags); 1987 1987 1988 1988 return 0; ··· 2029 2029 eaddr = (struct ev_t __iomem *)(vaddr + EVBUF); 2030 2030 2031 2031 /* Get our head and tail */ 2032 - head = readw(&(eaddr->ev_head)); 2033 - tail = readw(&(eaddr->ev_tail)); 2032 + head = readw(&eaddr->ev_head); 2033 + tail = readw(&eaddr->ev_tail); 2034 2034 2035 2035 /* 2036 2036 * If there is an event pending. Go service it. ··· 2369 2369 return; 2370 2370 2371 2371 cm_addr = (struct cm_t __iomem *)(vaddr + CMDBUF); 2372 - head = readw(&(cm_addr->cm_head)); 2372 + head = readw(&cm_addr->cm_head); 2373 2373 2374 2374 /* 2375 2375 * Forget it if pointers out of range. ··· 2389 2389 2390 2390 head = (head + 4) & (CMDMAX - CMDSTART - 4); 2391 2391 2392 - writew(head, &(cm_addr->cm_head)); 2392 + writew(head, &cm_addr->cm_head); 2393 2393 2394 2394 /* 2395 2395 * Wait if necessary before updating the head ··· 2398 2398 * is outlandish, declare the FEP dead. 2399 2399 */ 2400 2400 for (count = dgap_count ;;) { 2401 - head = readw(&(cm_addr->cm_head)); 2402 - tail = readw(&(cm_addr->cm_tail)); 2401 + head = readw(&cm_addr->cm_head); 2402 + tail = readw(&cm_addr->cm_tail); 2403 2403 2404 2404 n = (head - tail) & (CMDMAX - CMDSTART - 4); 2405 2405 ··· 2452 2452 return; 2453 2453 2454 2454 cm_addr = (struct cm_t __iomem *)(vaddr + CMDBUF); 2455 - head = readw(&(cm_addr->cm_head)); 2455 + head = readw(&cm_addr->cm_head); 2456 2456 2457 2457 /* 2458 2458 * Forget it if pointers out of range. ··· 2471 2471 2472 2472 head = (head + 4) & (CMDMAX - CMDSTART - 4); 2473 2473 2474 - writew(head, &(cm_addr->cm_head)); 2474 + writew(head, &cm_addr->cm_head); 2475 2475 2476 2476 /* 2477 2477 * Wait if necessary before updating the head ··· 2480 2480 * is outlandish, declare the FEP dead. 2481 2481 */ 2482 2482 for (count = dgap_count ;;) { 2483 - head = readw(&(cm_addr->cm_head)); 2484 - tail = readw(&(cm_addr->cm_tail)); 2483 + head = readw(&cm_addr->cm_head); 2484 + tail = readw(&cm_addr->cm_tail); 2485 2485 2486 2486 n = (head - tail) & (CMDMAX - CMDSTART - 4); 2487 2487 ··· 2534 2534 return; 2535 2535 2536 2536 cm_addr = (struct cm_t __iomem *)(vaddr + CMDBUF); 2537 - head = readw(&(cm_addr->cm_head)); 2537 + head = readw(&cm_addr->cm_head); 2538 2538 2539 2539 /* 2540 2540 * Forget it if pointers out of range. ··· 2565 2565 2566 2566 head = (head + 8) & (CMDMAX - CMDSTART - 4); 2567 2567 2568 - writew(head, &(cm_addr->cm_head)); 2568 + writew(head, &cm_addr->cm_head); 2569 2569 2570 2570 /* 2571 2571 * Wait if necessary before updating the head ··· 2574 2574 * is outlandish, declare the FEP dead. 2575 2575 */ 2576 2576 for (count = dgap_count ;;) { 2577 - head = readw(&(cm_addr->cm_head)); 2578 - tail = readw(&(cm_addr->cm_tail)); 2577 + head = readw(&cm_addr->cm_head); 2578 + tail = readw(&cm_addr->cm_tail); 2579 2579 2580 2580 n = (head - tail) & (CMDMAX - CMDSTART - 4); 2581 2581 ··· 2613 2613 * Check parameters. 2614 2614 */ 2615 2615 bs = ch->ch_bs; 2616 - head = readw(&(bs->tx_head)); 2616 + head = readw(&bs->tx_head); 2617 2617 2618 2618 /* 2619 2619 * If pointers are out of range, just return. ··· 2645 2645 memcpy_toio(taddr, buf, n); 2646 2646 head += cnt; 2647 2647 2648 - writew(head, &(bs->tx_head)); 2648 + writew(head, &bs->tx_head); 2649 2649 } 2650 2650 2651 2651 /* ··· 2694 2694 */ 2695 2695 if ((ch->ch_c_cflag & (CBAUD)) == 0) { 2696 2696 /* flush rx */ 2697 - head = readw(&(ch->ch_bs->rx_head)); 2698 - writew(head, &(ch->ch_bs->rx_tail)); 2697 + head = readw(&ch->ch_bs->rx_head); 2698 + writew(head, &ch->ch_bs->rx_tail); 2699 2699 2700 2700 /* flush tx */ 2701 - head = readw(&(ch->ch_bs->tx_head)); 2702 - writew(head, &(ch->ch_bs->tx_tail)); 2701 + head = readw(&ch->ch_bs->tx_head); 2702 + writew(head, &ch->ch_bs->tx_tail); 2703 2703 2704 2704 ch->ch_flags |= (CH_BAUD0); 2705 2705 ··· 2965 2965 /* 2966 2966 * Read modem signals, and then call carrier function. 2967 2967 */ 2968 - ch->ch_mistat = readb(&(ch->ch_bs->m_stat)); 2968 + ch->ch_mistat = readb(&ch->ch_bs->m_stat); 2969 2969 dgap_carrier(ch); 2970 2970 2971 2971 /* ··· 3157 3157 spin_lock_irqsave(&ch->ch_lock, lock_flags2); 3158 3158 3159 3159 ch->ch_flags &= ~CH_STOP; 3160 - head = readw(&(ch->ch_bs->tx_head)); 3160 + head = readw(&ch->ch_bs->tx_head); 3161 3161 dgap_cmdw(ch, FLUSHTX, (u16)head, 0); 3162 3162 dgap_cmdw(ch, RESUMETX, 0, 0); 3163 3163 if (ch->ch_tun.un_flags & (UN_LOW|UN_EMPTY)) { ··· 3251 3251 tmask = (ch->ch_tsize - 1); 3252 3252 3253 3253 /* Get Transmit queue pointers */ 3254 - thead = readw(&(bs->tx_head)) & tmask; 3255 - ttail = readw(&(bs->tx_tail)) & tmask; 3254 + thead = readw(&bs->tx_head) & tmask; 3255 + ttail = readw(&bs->tx_tail) & tmask; 3256 3256 3257 3257 /* Get tbusy flag */ 3258 - tbusy = readb(&(bs->tbusy)); 3258 + tbusy = readb(&bs->tbusy); 3259 3259 3260 3260 /* Get Command queue pointers */ 3261 - chead = readw(&(ch->ch_cm->cm_head)); 3262 - ctail = readw(&(ch->ch_cm->cm_tail)); 3261 + chead = readw(&ch->ch_cm->cm_head); 3262 + ctail = readw(&ch->ch_cm->cm_tail); 3263 3263 3264 3264 spin_unlock_irqrestore(&ch->ch_lock, lock_flags2); 3265 3265 spin_unlock_irqrestore(&bd->bd_lock, lock_flags); ··· 3295 3295 if (tbusy != 0) { 3296 3296 spin_lock_irqsave(&ch->ch_lock, lock_flags); 3297 3297 un->un_flags |= UN_EMPTY; 3298 - writeb(1, &(bs->iempty)); 3298 + writeb(1, &bs->iempty); 3299 3299 spin_unlock_irqrestore(&ch->ch_lock, 3300 3300 lock_flags); 3301 3301 } ··· 3340 3340 /* Set flag waiting for drain */ 3341 3341 spin_lock_irqsave(&ch->ch_lock, lock_flags); 3342 3342 un->un_flags |= UN_EMPTY; 3343 - writeb(1, &(bs->iempty)); 3343 + writeb(1, &bs->iempty); 3344 3344 spin_unlock_irqrestore(&ch->ch_lock, lock_flags); 3345 3345 3346 3346 /* Go to sleep till we get woken up */ ··· 3419 3419 if ((event & UN_LOW) != 0) { 3420 3420 if ((un->un_flags & UN_LOW) == 0) { 3421 3421 un->un_flags |= UN_LOW; 3422 - writeb(1, &(bs->ilow)); 3422 + writeb(1, &bs->ilow); 3423 3423 } 3424 3424 } 3425 3425 if ((event & UN_LOW) != 0) { 3426 3426 if ((un->un_flags & UN_EMPTY) == 0) { 3427 3427 un->un_flags |= UN_EMPTY; 3428 - writeb(1, &(bs->iempty)); 3428 + writeb(1, &bs->iempty); 3429 3429 } 3430 3430 } 3431 3431 } ··· 3462 3462 spin_lock_irqsave(&ch->ch_lock, lock_flags); 3463 3463 3464 3464 tmask = ch->ch_tsize - 1; 3465 - head = readw(&(bs->tx_head)) & tmask; 3466 - tail = readw(&(bs->tx_tail)) & tmask; 3465 + head = readw(&bs->tx_head) & tmask; 3466 + tail = readw(&bs->tx_tail) & tmask; 3467 3467 3468 3468 ret = tail - head - 1; 3469 3469 if (ret < 0) ··· 3575 3575 if ((un->un_type == DGAP_PRINT) && !(ch->ch_flags & CH_PRON)) { 3576 3576 dgap_wmove(ch, ch->ch_digi.digi_onstr, 3577 3577 (int)ch->ch_digi.digi_onlen); 3578 - head = readw(&(bs->tx_head)) & tmask; 3578 + head = readw(&bs->tx_head) & tmask; 3579 3579 ch->ch_flags |= CH_PRON; 3580 3580 } 3581 3581 ··· 3586 3586 if ((un->un_type != DGAP_PRINT) && (ch->ch_flags & CH_PRON)) { 3587 3587 dgap_wmove(ch, ch->ch_digi.digi_offstr, 3588 3588 (int)ch->ch_digi.digi_offlen); 3589 - head = readw(&(bs->tx_head)) & tmask; 3589 + head = readw(&bs->tx_head) & tmask; 3590 3590 ch->ch_flags &= ~CH_PRON; 3591 3591 } 3592 3592 ··· 3623 3623 if (count) { 3624 3624 ch->ch_txcount += count; 3625 3625 head &= tmask; 3626 - writew(head, &(bs->tx_head)); 3626 + writew(head, &bs->tx_head); 3627 3627 } 3628 3628 3629 3629 dgap_set_firmware_event(un, UN_LOW | UN_EMPTY); ··· 3636 3636 * Otherwise turn it off right now. 3637 3637 */ 3638 3638 if ((un->un_type == DGAP_PRINT) && (ch->ch_flags & CH_PRON)) { 3639 - tail = readw(&(bs->tx_tail)) & tmask; 3639 + tail = readw(&bs->tx_tail) & tmask; 3640 3640 3641 3641 if (tail != head) { 3642 3642 un->un_flags |= UN_EMPTY; 3643 - writeb(1, &(bs->iempty)); 3643 + writeb(1, &bs->iempty); 3644 3644 } else { 3645 3645 dgap_wmove(ch, ch->ch_digi.digi_offstr, 3646 3646 (int)ch->ch_digi.digi_offlen); 3647 - head = readw(&(bs->tx_head)) & tmask; 3647 + head = readw(&bs->tx_head) & tmask; 3648 3648 ch->ch_flags &= ~CH_PRON; 3649 3649 } 3650 3650 } ··· 3700 3700 3701 3701 spin_lock_irqsave(&ch->ch_lock, lock_flags); 3702 3702 3703 - mstat = readb(&(ch->ch_bs->m_stat)); 3703 + mstat = readb(&ch->ch_bs->m_stat); 3704 3704 /* Append any outbound signals that might be pending... */ 3705 3705 mstat |= ch->ch_mostat; 3706 3706 ··· 3911 3911 3912 3912 spin_lock_irqsave(&ch->ch_lock, lock_flags); 3913 3913 3914 - mstat = readb(&(ch->ch_bs->m_stat)); 3914 + mstat = readb(&ch->ch_bs->m_stat); 3915 3915 /* Append any outbound signals that might be pending... */ 3916 3916 mstat |= ch->ch_mostat; 3917 3917 ··· 4123 4123 memset(&tmp, 0, sizeof(tmp)); 4124 4124 4125 4125 spin_lock_irqsave(&ch->ch_lock, lock_flags); 4126 - tmp = readw(&(ch->ch_bs->edelay)); 4126 + tmp = readw(&ch->ch_bs->edelay); 4127 4127 spin_unlock_irqrestore(&ch->ch_lock, lock_flags); 4128 4128 4129 4129 if (copy_to_user(retinfo, &tmp, sizeof(*retinfo))) ··· 4458 4458 /* 4459 4459 * Flush input queue. 4460 4460 */ 4461 - head = readw(&(bs->rx_head)); 4462 - writew(head, &(bs->rx_tail)); 4461 + head = readw(&bs->rx_head); 4462 + writew(head, &bs->rx_tail); 4463 4463 4464 4464 ch->ch_flags = 0; 4465 4465 ch->pscan_state = 0; ··· 4943 4943 4944 4944 if ((arg == TCIFLUSH) || (arg == TCIOFLUSH)) { 4945 4945 if (!(un->un_type == DGAP_PRINT)) { 4946 - head = readw(&(ch->ch_bs->rx_head)); 4947 - writew(head, &(ch->ch_bs->rx_tail)); 4948 - writeb(0, &(ch->ch_bs->orun)); 4946 + head = readw(&ch->ch_bs->rx_head); 4947 + writew(head, &ch->ch_bs->rx_tail); 4948 + writeb(0, &ch->ch_bs->orun); 4949 4949 } 4950 4950 } 4951 4951 ··· 4958 4958 } 4959 4959 4960 4960 ch->ch_flags &= ~CH_STOP; 4961 - head = readw(&(ch->ch_bs->tx_head)); 4961 + head = readw(&ch->ch_bs->tx_head); 4962 4962 dgap_cmdw(ch, FLUSHTX, (u16)head, 0); 4963 4963 dgap_cmdw(ch, RESUMETX, 0, 0); 4964 4964 if (ch->ch_tun.un_flags & (UN_LOW|UN_EMPTY)) { ··· 4994 4994 if (cmd == TCSETSF) { 4995 4995 /* flush rx */ 4996 4996 ch->ch_flags &= ~CH_STOP; 4997 - head = readw(&(ch->ch_bs->rx_head)); 4998 - writew(head, &(ch->ch_bs->rx_tail)); 4997 + head = readw(&ch->ch_bs->rx_head); 4998 + writew(head, &ch->ch_bs->rx_tail); 4999 4999 } 5000 5000 5001 5001 /* now wait for all the output to drain */ ··· 5899 5899 static void dgap_create_ports_sysfiles(struct board_t *bd) 5900 5900 { 5901 5901 dev_set_drvdata(&bd->pdev->dev, bd); 5902 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_state); 5903 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_baud); 5904 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_msignals); 5905 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_iflag); 5906 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_cflag); 5907 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_oflag); 5908 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_lflag); 5909 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_digi_flag); 5910 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_rxcount); 5911 - device_create_file(&(bd->pdev->dev), &dev_attr_ports_txcount); 5902 + device_create_file(&bd->pdev->dev, &dev_attr_ports_state); 5903 + device_create_file(&bd->pdev->dev, &dev_attr_ports_baud); 5904 + device_create_file(&bd->pdev->dev, &dev_attr_ports_msignals); 5905 + device_create_file(&bd->pdev->dev, &dev_attr_ports_iflag); 5906 + device_create_file(&bd->pdev->dev, &dev_attr_ports_cflag); 5907 + device_create_file(&bd->pdev->dev, &dev_attr_ports_oflag); 5908 + device_create_file(&bd->pdev->dev, &dev_attr_ports_lflag); 5909 + device_create_file(&bd->pdev->dev, &dev_attr_ports_digi_flag); 5910 + device_create_file(&bd->pdev->dev, &dev_attr_ports_rxcount); 5911 + device_create_file(&bd->pdev->dev, &dev_attr_ports_txcount); 5912 5912 } 5913 5913 5914 5914 /* removes all the sys files created for that port */ 5915 5915 static void dgap_remove_ports_sysfiles(struct board_t *bd) 5916 5916 { 5917 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_state); 5918 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_baud); 5919 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_msignals); 5920 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_iflag); 5921 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_cflag); 5922 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_oflag); 5923 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_lflag); 5924 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_digi_flag); 5925 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_rxcount); 5926 - device_remove_file(&(bd->pdev->dev), &dev_attr_ports_txcount); 5917 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_state); 5918 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_baud); 5919 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_msignals); 5920 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_iflag); 5921 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_cflag); 5922 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_oflag); 5923 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_lflag); 5924 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_digi_flag); 5925 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_rxcount); 5926 + device_remove_file(&bd->pdev->dev, &dev_attr_ports_txcount); 5927 5927 } 5928 5928 5929 5929 /* ··· 6759 6759 ch->ch_dsr = DM_DSR; 6760 6760 } 6761 6761 6762 - ch->ch_taddr = vaddr + (ioread16(&(ch->ch_bs->tx_seg)) << 4); 6763 - ch->ch_raddr = vaddr + (ioread16(&(ch->ch_bs->rx_seg)) << 4); 6762 + ch->ch_taddr = vaddr + (ioread16(&ch->ch_bs->tx_seg) << 4); 6763 + ch->ch_raddr = vaddr + (ioread16(&ch->ch_bs->rx_seg) << 4); 6764 6764 ch->ch_tx_win = 0; 6765 6765 ch->ch_rx_win = 0; 6766 - ch->ch_tsize = readw(&(ch->ch_bs->tx_max)) + 1; 6767 - ch->ch_rsize = readw(&(ch->ch_bs->rx_max)) + 1; 6766 + ch->ch_tsize = readw(&ch->ch_bs->tx_max) + 1; 6767 + ch->ch_rsize = readw(&ch->ch_bs->rx_max) + 1; 6768 6768 ch->ch_tstart = 0; 6769 6769 ch->ch_rstart = 0; 6770 6770 ··· 6782 6782 6783 6783 dgap_cmdw(ch, SRHIGH, 7 * ch->ch_rsize / 8, 0); 6784 6784 6785 - ch->ch_mistat = readb(&(ch->ch_bs->m_stat)); 6785 + ch->ch_mistat = readb(&ch->ch_bs->m_stat); 6786 6786 6787 6787 init_waitqueue_head(&ch->ch_flags_wait); 6788 6788 init_waitqueue_head(&ch->ch_tun.un_flags_wait); ··· 6790 6790 6791 6791 /* Turn on all modem interrupts for now */ 6792 6792 modem = (DM_CD | DM_DSR | DM_CTS | DM_RI); 6793 - writeb(modem, &(ch->ch_bs->m_int)); 6793 + writeb(modem, &ch->ch_bs->m_int); 6794 6794 6795 6795 /* 6796 6796 * Set edelay to 0 if interrupts are turned on, 6797 6797 * otherwise set edelay to the usual 100. 6798 6798 */ 6799 6799 if (brd->intr_used) 6800 - writew(0, &(ch->ch_bs->edelay)); 6800 + writew(0, &ch->ch_bs->edelay); 6801 6801 else 6802 - writew(100, &(ch->ch_bs->edelay)); 6802 + writew(100, &ch->ch_bs->edelay); 6803 6803 6804 - writeb(1, &(ch->ch_bs->idata)); 6804 + writeb(1, &ch->ch_bs->idata); 6805 6805 } 6806 6806 6807 6807 return 0;