Changeset dced52a in mainline for uspace/drv/uhci-rhd/root_hub.c


Ignore:
Timestamp:
2011-02-28T12:24:57Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86341e2, cc44f7e
Parents:
4abc304
Message:

Debug code refactoring, redundant code removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/root_hub.c

    r4abc304 rdced52a  
    4646        assert(rh);
    4747        int ret;
    48         ret = usb_hc_find(rh->handle, &instance->hc_handle);
    49         usb_log_info("rh found(%d) hc handle: %d.\n", ret, instance->hc_handle);
    50         if (ret != EOK) {
    51                 return ret;
    52         }
    5348
    5449        /* allow access to root hub registers */
    5550        assert(sizeof(port_status_t) * UHCI_ROOT_HUB_PORT_COUNT == size);
    5651        port_status_t *regs;
    57         ret = pio_enable(
    58           addr, sizeof(port_status_t) * UHCI_ROOT_HUB_PORT_COUNT, (void**)&regs);
     52        ret = pio_enable(addr, size, (void**)&regs);
    5953
    6054        if (ret < 0) {
     
    6761        for (; i < UHCI_ROOT_HUB_PORT_COUNT; ++i) {
    6862                /* mind pointer arithmetics */
    69                 int ret = uhci_port_init(
     63                ret = uhci_port_init(
    7064                  &instance->ports[i], regs + i, i, ROOT_HUB_WAIT_USEC, rh);
    7165                if (ret != EOK) {
Note: See TracChangeset for help on using the changeset viewer.