Changeset 05b5f9c0 in rtems


Ignore:
Timestamp:
Oct 5, 2018, 11:56:59 AM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e761fb4
Parents:
4a7c6867
Message:

jffs2: Avoid use of constant register variable

Avoid the use of a constant register variable which is used in some
conditions. This gets rid of a clang -Wsometimes-uninitialized warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/jffs2/src/readinode.c

    r4a7c6867 r05b5f9c0  
    3434{
    3535        struct jffs2_raw_node_ref *ref = tn->fn->raw;
     36#ifndef __rtems__
    3637        int err = 0, pointed = 0;
     38#else /* __rtems__ */
     39        int err = 0;
     40#endif /* __rtems__ */
    3741        struct jffs2_eraseblock *jeb;
    3842        unsigned char *buffer;
     
    7882#endif
    7983
     84#ifndef __rtems__
    8085        if (!pointed) {
     86#endif /* __rtems__ */
    8187                buffer = kmalloc(len, GFP_KERNEL);
    8288                if (unlikely(!buffer))
     
    96102                        goto free_out;
    97103                }
    98         }
     104#ifndef __rtems__
     105        }
     106#endif /* __rtems__ */
    99107
    100108        /* Continue calculating CRC */
    101109        crc = crc32(tn->partial_crc, buffer, len);
     110#ifndef __rtems__
    102111        if(!pointed)
     112#endif /* __rtems__ */
    103113                kfree(buffer);
    104114#ifndef __ECOS
     
    136146
    137147free_out:
     148#ifndef __rtems__
    138149        if(!pointed)
     150#endif /* __rtems__ */
    139151                kfree(buffer);
    140152#ifndef __ECOS
Note: See TracChangeset for help on using the changeset viewer.