Merge equivalent if statements.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2533
This commit is contained in:
Nicholas Nethercote 2004-07-28 16:03:29 +00:00
parent 5cb175294a
commit 3dc7eebda2

View File

@ -286,9 +286,7 @@ void* VG_(mmap)( void* start, UInt length,
} else {
vg_assert(VG_(valgrind_base) <= res && res+length < VG_(valgrind_end));
}
}
if (!VG_(is_kerror)(res)) {
sf_flags |= SF_MMAP;
if ( flags & VKI_MAP_FIXED) sf_flags |= SF_FIXED;
if ( flags & VKI_MAP_SHARED) sf_flags |= SF_SHARED;