summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/pread64.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-06-05 17:24:30 -0700
committerElliott Hughes <enh@google.com>2014-06-05 17:24:30 -0700
commit15a0456d0b7618554ed3d49287e77b6d43a2812a (patch)
tree5b675e8b31dedd88f02325c3fd14fa9f23c15216 /libc/arch-x86/syscalls/pread64.S
parent50b79530c6fea6d47d54edf6f351dcbd7d87ab6a (diff)
downloadbionic-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/syscalls/pread64.S')
-rw-r--r--libc/arch-x86/syscalls/pread64.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/libc/arch-x86/syscalls/pread64.S b/libc/arch-x86/syscalls/pread64.S
index 6cf4e4b..6b3c8ad 100644
--- a/libc/arch-x86/syscalls/pread64.S
+++ b/libc/arch-x86/syscalls/pread64.S
@@ -31,7 +31,6 @@ ENTRY(pread64)
pushl %eax
call __set_errno
addl $4, %esp
- orl $-1, %eax
1:
popl %edi
popl %esi