diff options
Diffstat (limited to 'src/pkg/syscall/syscall_linux.go')
-rw-r--r-- | src/pkg/syscall/syscall_linux.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/syscall/syscall_linux.go b/src/pkg/syscall/syscall_linux.go index 70b34b46d..ac77942a3 100644 --- a/src/pkg/syscall/syscall_linux.go +++ b/src/pkg/syscall/syscall_linux.go @@ -521,9 +521,7 @@ func PtraceSetOptions(pid int, options int) (errno int) { func PtraceGetEventMsg(pid int) (msg uint, errno int) { var data _C_long; errno = ptrace(_PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data))); - if errno != 0 { - msg = uint(data); - } + msg = uint(data); return; } |