[rtems commit] libcsupport/src/mount.c: Remove unnecessary operation

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


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

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

libcsupport/src/mount.c: Remove unnecessary operation

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;



More information about the vc mailing list