Changeset 10f28a3a in rtems


Ignore:
Timestamp:
Nov 19, 2014, 8:36:44 PM (5 years ago)
Author:
Josh Oguin <josh.oguin@…>
Branches:
4.11, master
Children:
21c0ca8
Parents:
72f63eef
git-author:
Josh Oguin <josh.oguin@…> (11/19/14 20:36:44)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/26/14 13:51:58)
Message:

dosfs/msdos_conv.c: Remove unnecessary operations

These were flagged by CodeSonar?. The assignments on variable declaration
are overridden a few lines below and the other line later with name_size
is where name_size was not used after this assignment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/msdos_conv.c

    r72f63eef r10f28a3a  
    410410    ssize_t      returned_size = 0;
    411411    int          eno           = 0;
    412     size_t       name_size     = utf8_name_size;
    413     size_t       name_size_tmp = long_name_size / MSDOS_NAME_LFN_BYTES_PER_CHAR;
     412    size_t       name_size;
     413    size_t       name_size_tmp;
    414414    int          i;
    415415    uint16_t     c;
     
    453453          long_name[i]   = c;
    454454          returned_size += MSDOS_NAME_LFN_BYTES_PER_CHAR;
    455           name_size     -= MSDOS_NAME_LFN_BYTES_PER_CHAR;
    456455        }
    457456        else if ( name_size != 0 )
Note: See TracChangeset for help on using the changeset viewer.