|
From: Nicholas N. <nj...@ca...> - 2004-07-10 18:08:19
|
CVS commit by nethercote:
Removed some unnecessary is_kerror() checks.
Fixed nanosleep's formatting.
M +20 -27 vg_syscalls.c 1.109
--- valgrind/coregrind/vg_syscalls.c #1.108:1.109
@@ -3950,8 +3950,6 @@ PRE(mmap2)
POST(mmap2)
{
- if (!VG_(is_kerror)(res)) {
vg_assert(valid_client_addr(res, arg2, tid, "mmap2"));
mmap_segment( (Addr)res, arg2, arg3, arg4, arg5, arg6 * (ULong)VKI_BYTES_PER_PAGE );
- }
}
@@ -4062,5 +4060,4 @@ PRE(mincore)
POST(mincore)
{
- if (!VG_(is_kerror)(res))
VG_TRACK( post_mem_write, arg3, (arg2 + 4096 - 1) / 4096 );
}
@@ -5164,5 +5161,4 @@ PRE(clock_gettime)
POST(clock_gettime)
{
- if (!VG_(is_kerror)(res) && res == 0)
VG_TRACK( post_mem_write, arg2, sizeof(struct timespec) );
}
@@ -5192,5 +5188,4 @@ PRE(futex)
POST(futex)
{
- if (!VG_(is_kerror)(res)) {
VG_TRACK( post_mem_write, arg1, sizeof(int) );
if (arg2 == VKI_FUTEX_FD) {
@@ -5203,5 +5198,4 @@ POST(futex)
}
}
- }
}
@@ -5359,5 +5353,4 @@ PRE(sigpending)
POST(sigpending)
{
- if ( !VG_( is_kerror )( res ) && res == 0 )
VG_TRACK( post_mem_write, arg1, sizeof( vki_ksigset_t ) ) ;
}
|