diff options
author | Elliott Hughes <enh@google.com> | 2014-06-05 17:24:30 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-06-05 17:24:30 -0700 |
commit | 15a0456d0b7618554ed3d49287e77b6d43a2812a (patch) | |
tree | 5b675e8b31dedd88f02325c3fd14fa9f23c15216 /libc/arch-x86_64/syscalls/sysinfo.S | |
parent | 50b79530c6fea6d47d54edf6f351dcbd7d87ab6a (diff) | |
download | bionic-15a0456d0b7618554ed3d49287e77b6d43a2812a.zip bionic-15a0456d0b7618554ed3d49287e77b6d43a2812a.tar.gz bionic-15a0456d0b7618554ed3d49287e77b6d43a2812a.tar.bz2 |
Remove unnecessary instructions from x86/x86_64 syscalls.
__set_errno returns -1 exactly so that callers don't need to bother.
The other architectures were already taking advantage of this, but
no one had ever fixed x86 and x86_64.
Change-Id: Ie131494be664f6c4a1bbf8c61bbbed58eac56122
Diffstat (limited to 'libc/arch-x86_64/syscalls/sysinfo.S')
-rw-r--r-- | libc/arch-x86_64/syscalls/sysinfo.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libc/arch-x86_64/syscalls/sysinfo.S b/libc/arch-x86_64/syscalls/sysinfo.S index d483693..104bb2c 100644 --- a/libc/arch-x86_64/syscalls/sysinfo.S +++ b/libc/arch-x86_64/syscalls/sysinfo.S @@ -10,7 +10,6 @@ ENTRY(sysinfo) negl %eax movl %eax, %edi call __set_errno - orq $-1, %rax 1: ret END(sysinfo) |