Remove unneeded syscall calls.