Changeset 84239b1 in mainline for kernel


Ignore:
Timestamp:
2018-03-11T19:39:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3d47c97
Parents:
850fd32
Message:

And there was much fixing.

Location:
kernel
Files:
5 edited

Legend:

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

    r850fd32 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);
  • kernel/arch/mips32/src/debug/stacktrace.c

    r850fd32 r84239b1  
    159159
    160160                        /* Seek to the end of this function. */
    161                         for (cur = inst + 1; !IS_JR_RA(*cur); cur++)
    162                                 ;
     161                        cur = inst + 1;
     162                        while (!IS_JR_RA(*cur))
     163                                cur++;
     164
    163165                        /* Scan the last basic block */
    164166                        for (cur--; !is_jump(*(cur - 1)); cur--) {
  • kernel/genarch/src/ofw/ofw_tree.c

    r850fd32 r84239b1  
    251251
    252252        for (size_t i = 1; (i < str_size(path)) && (node); i = j + 1) {
    253                 for (j = i; (j < str_size(path)) && (path[j] != '/'); j++);
     253                j = i;
     254                while (j < str_size(path) && path[j] != '/')
     255                        j++;
    254256
    255257                /* Skip extra slashes */
  • kernel/generic/src/adt/avl.c

    r850fd32 r84239b1  
    412412                 * node.
    413413                 */
    414                 for (cur = node->lft; cur->rgt != NULL; cur = cur->rgt)
    415                         ;
     414                cur = node->lft;
     415                while (cur->rgt != NULL)
     416                        cur = cur->rgt;
    416417
    417418                if (cur != node->lft) {
     
    462463         * cut-off node up to the root.
    463464         */
    464         for (;;) {
     465        while (true) {
    465466                if (dir == LEFT) {
    466467                        /*
  • kernel/generic/src/console/kconsole.c

    r850fd32 r84239b1  
    264264                        }
    265265
    266                         for (max_match_len_tmp = 0;
    267                             (output[max_match_len_tmp] ==
     266                        max_match_len_tmp = 0;
     267                        while ((output[max_match_len_tmp] ==
    268268                            hint[max_match_len_tmp]) &&
    269                             (max_match_len_tmp < max_match_len); ++max_match_len_tmp);
     269                            (max_match_len_tmp < max_match_len))
     270                                ++max_match_len_tmp;
    270271
    271272                        max_match_len = max_match_len_tmp;
     
    373374                                beg = 0;
    374375                        } else {
    375                                 for (beg = position - 1;
    376                                     (beg > 0) && (!isspace(current[beg]));
    377                                     beg--);
     376                                beg = position - 1;
     377                                while ((beg > 0) && (!isspace(current[beg])))
     378                                    beg--;
    378379
    379380                                if (isspace(current[beg]))
Note: See TracChangeset for help on using the changeset viewer.