Changeset eb748a0 in mainline for kernel/generic/src/mm/slab.c


Ignore:
Timestamp:
2018-03-26T22:07:55Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2172284
Parents:
af60409
Message:

Three more loop fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/slab.c

    raf60409 reb748a0  
    856856                irq_spinlock_lock(&slab_cache_lock, true);
    857857
    858                 link_t *cur;
    859                 size_t i;
    860                 for (i = 0, cur = slab_cache_list.head.next;
    861                     (i < skip) && (cur != &slab_cache_list.head);
    862                     i++, cur = cur->next);
     858                link_t *cur = slab_cache_list.head.next;
     859                size_t i = 0;
     860                while (i < skip && cur != &slab_cache_list.head) {
     861                        i++;
     862                        cur = cur->next;
     863                }
    863864
    864865                if (cur == &slab_cache_list.head) {
Note: See TracChangeset for help on using the changeset viewer.