Ignore:
File:
1 edited

Legend:

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

    ra35b458 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.