From 15a0456d0b7618554ed3d49287e77b6d43a2812a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 5 Jun 2014 17:24:30 -0700 Subject: 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 --- libc/arch-x86/syscalls/readv.S | 1 - 1 file changed, 1 deletion(-) (limited to 'libc/arch-x86/syscalls/readv.S') diff --git a/libc/arch-x86/syscalls/readv.S b/libc/arch-x86/syscalls/readv.S index 8cb01a0..8b5ff41 100644 --- a/libc/arch-x86/syscalls/readv.S +++ b/libc/arch-x86/syscalls/readv.S @@ -23,7 +23,6 @@ ENTRY(readv) pushl %eax call __set_errno addl $4, %esp - orl $-1, %eax 1: popl %edx popl %ecx -- cgit v1.1