From 5c758d1a8c48b1ca97e7e13140b9d22e17f2382e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 27 Aug 2010 17:42:52 +0000 Subject: 2010-08-27 Joel Sherrill PR 1693/filesystem * libfs/src/imfs/memfile.c: IMFS_memfile_get_block_pointer() was checking incorrect pointer and thus had dead code. --- cpukit/ChangeLog | 6 ++++++ cpukit/libfs/src/imfs/memfile.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index a4b6c4c5de..8ed4404a0b 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2010-08-27 Joel Sherrill + + 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 PR 1692/filesystem diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c index f73c6ecf9d..f7b6d951a4 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 ]; -- cgit v1.2.3