summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:43:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-27 17:43:26 +0000
commitf70b79178fb1af8a2a0cc8945ec9f37491638e4d (patch)
treeeb0b0d50a08d2b8cd58103aa0292d934fc487d22 /cpukit/libfs
parent2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-f70b79178fb1af8a2a0cc8945ec9f37491638e4d.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/libfs')
-rw-r--r--cpukit/libfs/src/imfs/memfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c
index 9d1d55a06d..98616d1b36 100644
--- a/cpukit/libfs/src/imfs/memfile.c
+++ b/cpukit/libfs/src/imfs/memfile.c
@@ -931,7 +931,7 @@ block_p *IMFS_memfile_get_block_pointer(
return 0;
p2 = (block_p *)p1[ doubly ];
- if ( !p )
+ if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];