summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:42:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:42:40 +0000
commitb5b69605864f7afdb6b9df93beca0fb3eb35f5a0 (patch)
treeeecc9ab1f759fbe9c81c6c8b651db854ea3090bd
parentefc6811853f0b9f0b445254d14c0b75ef64f8159 (diff)
2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1693/filesystem * libfs/src/imfs/memfile.c: IMFS_memfile_get_block_pointer() was checking incorrect pointer and thus had dead code.
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/libfs/src/imfs/memfile.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 3bf0819724..9fe9c06314 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,11 @@
2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
+ PR 1693/filesystem
+ * libfs/src/imfs/memfile.c: IMFS_memfile_get_block_pointer() was
+ checking incorrect pointer and thus had dead code.
+
+2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
PR 1692/filesystem
* libcsupport/include/rtems/libio.h, libfs/src/imfs/imfs_eval.c: Fix
implementation and use of rtems_libio_is_valid_perms().
diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c
index 799715f06c..bba2c46cde 100644
--- a/cpukit/libfs/src/imfs/memfile.c
+++ b/cpukit/libfs/src/imfs/memfile.c
@@ -1046,7 +1046,7 @@ fflush(stdout);
return 0;
p2 = (block_p *)p1[ doubly ];
- if ( !p )
+ if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];