Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/cpu/cpu.c

    r84239b1 r1b20da0  
    109109        if (m->arch.imp_num & 0x80) {
    110110                /* Count records */
    111                 i = 0;
    112                 while (imp_data80[i].vendor)
    113                         i++;
     111                for (i = 0; imp_data80[i].vendor; i++);
    114112                if ((m->arch.imp_num & 0x7f) >= i) {
    115113                        printf("imp=%d\n", m->arch.imp_num);
     
    118116                data = &imp_data80[m->arch.imp_num & 0x7f];
    119117        } else {
    120                 i = 0;
    121                 while (imp_data[i].vendor)
    122                         i++;
     118                for (i = 0; imp_data[i].vendor; i++);
    123119                if (m->arch.imp_num >= i) {
    124120                        printf("imp=%d\n", m->arch.imp_num);
Note: See TracChangeset for help on using the changeset viewer.