[PATCH 06/20] libcsupport/src/mount.c: Remove unnecessary operation

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


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

This was flagged by CodeSonar.
---
 cpukit/libcsupport/src/mount.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
index d993686..0d66477 100644
--- a/cpukit/libcsupport/src/mount.c
+++ b/cpukit/libcsupport/src/mount.c
@@ -77,7 +77,6 @@ static rtems_filesystem_mount_table_entry_t *alloc_mount_table_entry(
 
     memcpy( str, target, target_size );
     mt_entry->target = str;
-    str += target_size;
 
     mt_entry->mounted = true;
     mt_entry->mt_fs_root = mt_fs_root;
-- 
1.9.3




More information about the devel mailing list