Changeset 26d6f73 in mainline


Ignore:
Timestamp:
2015-06-30T04:10:09Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ef69e9
Parents:
a6abe20
Message:

ehci: Use list_foreach_safe

File:
1 edited

Legend:

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

    ra6abe20 r26d6f73  
    334334                fibril_mutex_lock(&instance->guard);
    335335
    336                 link_t *current = list_first(&instance->pending_batches);
    337                 while (current && current != &instance->pending_batches.head) {
    338                         link_t *next = current->next;
     336                list_foreach_safe(instance->pending_batches, current, next) {
    339337                        ehci_transfer_batch_t *batch =
    340338                            ehci_transfer_batch_from_link(current);
     
    344342                                ehci_transfer_batch_finish_dispose(batch);
    345343                        }
    346                         current = next;
    347344                }
    348345                fibril_mutex_unlock(&instance->guard);
Note: See TracChangeset for help on using the changeset viewer.