Changeset 75f9dcd in mainline for uspace/drv/bus/usb/uhci/hc.c


Ignore:
Timestamp:
2011-10-07T17:11:53Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6f05705
Parents:
9b8958b
Message:

uhci: Declare iteration variables inside for loops.

Fix typo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.c

    r9b8958b r75f9dcd  
    299299        const uint32_t queue = LINK_POINTER_QH(
    300300                addr_to_phys(instance->transfers_interrupt.queue_head));
    301         unsigned i = 0;
    302         for(; i < UHCI_FRAME_LIST_COUNT; ++i) {
     301
     302        for (unsigned i = 0; i < UHCI_FRAME_LIST_COUNT; ++i) {
    303303                instance->frame_list[i] = queue;
    304304        }
Note: See TracChangeset for help on using the changeset viewer.