[PATCH 11/20] dosfs/msdos_misc.c: Remove unnecessary operation

Joel Sherrill joel.sherrill at oarcorp.com
Tue Nov 25 23:02:39 UTC 2014


From: Josh Oguin <josh.oguin at oarcorp.com>

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 --
-- 
1.9.3



More information about the devel mailing list