Ignore:
File:
1 edited

Legend:

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

    reb748a0 ra35b458  
    856856                irq_spinlock_lock(&slab_cache_lock, true);
    857857
    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                 }
     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);
    864863
    865864                if (cur == &slab_cache_list.head) {
Note: See TracChangeset for help on using the changeset viewer.