summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Oguin <josh.oguin@oarcorp.com>2014-11-19 14:39:14 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-11-26 07:51:58 -0600
commit43d6a28fd1fb9a0211855c67fb4cb1427743539b (patch)
tree273cc573ff1fa186a56fe21de01b394757b66452
parentdosfs/msdos_file.c: Return an error if it occurs (diff)
downloadrtems-43d6a28fd1fb9a0211855c67fb4cb1427743539b.tar.bz2
dosfs/msdos_misc.c: Remove unnecessary operation
CodeSonar flagged the increment of this pointer as unneeded. The pointer is not used past this point.
-rw-r--r--cpukit/libfs/src/dosfs/msdos_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c
index faa62a5cf3..fdac613c72 100644
--- a/cpukit/libfs/src/dosfs/msdos_misc.c
+++ b/cpukit/libfs/src/dosfs/msdos_misc.c
@@ -110,7 +110,7 @@ msdos_short_name_hex(char* sfn, int num)
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
*c++ = '~';
- *c++ = '1';
+ *c = '1';
}
/* msdos_name_type --