Ignore:
File:
1 edited

Legend:

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

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