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/syscalls/__timer_settime.S | |
parent | 50b79530c6fea6d47d54edf6f351dcbd7d87ab6a (diff) | |
download | android_bionic-15a0456d0b7618554ed3d49287e77b6d43a2812a.tar.gz android_bionic-15a0456d0b7618554ed3d49287e77b6d43a2812a.tar.bz2 android_bionic-15a0456d0b7618554ed3d49287e77b6d43a2812a.zip |
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/syscalls/__timer_settime.S')
-rw-r--r-- | libc/arch-x86/syscalls/__timer_settime.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libc/arch-x86/syscalls/__timer_settime.S b/libc/arch-x86/syscalls/__timer_settime.S index 7b0ab43ea..da7c58715 100644 --- a/libc/arch-x86/syscalls/__timer_settime.S +++ b/libc/arch-x86/syscalls/__timer_settime.S @@ -27,7 +27,6 @@ ENTRY(__timer_settime) pushl %eax call __set_errno addl $4, %esp - orl $-1, %eax 1: popl %esi popl %edx |