diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-27 17:43:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-27 17:43:18 +0000 |
commit | b8dc838c14aa0f56f9fe019d68fc0ed3911618bb (patch) | |
tree | 50b6f82a0472c4e5c33ab91ee63edfbbc3eea6a7 /cpukit | |
parent | 2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-b8dc838c14aa0f56f9fe019d68fc0ed3911618bb.tar.bz2 |
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.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/memfile.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 3171eff752..60902f7a17 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/devfs/devfs_eval.c, libfs/src/imfs/imfs_eval.c: Fix implementation and use of diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c index e0429b3e92..fc7d0fb56c 100644 --- a/cpukit/libfs/src/imfs/memfile.c +++ b/cpukit/libfs/src/imfs/memfile.c @@ -1048,7 +1048,7 @@ fflush(stdout); return 0; p2 = (block_p *)p1[ doubly ]; - if ( !p ) + if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; |