[rtems commit] dosfs/msdos_misc.c: Remove unnecessary operation

Joel Sherril joel at rtems.org
Wed Nov 26 13:55:51 UTC 2014


Module:    rtems
Branch:    master
Commit:    43d6a28fd1fb9a0211855c67fb4cb1427743539b
Changeset: http://git.rtems.org/rtems/commit/?id=43d6a28fd1fb9a0211855c67fb4cb1427743539b

Author:    Josh Oguin <josh.oguin at oarcorp.com>
Date:      Wed Nov 19 14:39:14 2014 -0600

dosfs/msdos_misc.c: Remove unnecessary operation

CodeSonar flagged the increment of this pointer as unneeded. The pointer
is not used past this point.

---

 cpukit/libfs/src/dosfs/msdos_misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c
index faa62a5..fdac613 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 --



More information about the vc mailing list