From: Rich Felker Date: Sat, 5 Oct 2013 16:00:55 +0000 (-0400) Subject: slightly optimize __brk for size X-Git-Tag: v0.9.15~101 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8acbe4f81862147af73c05ebb770e2ab4ef5375b;p=oweals%2Fmusl.git slightly optimize __brk for size there is no reason to check the return value for setting errno, since brk never returns errors, only the new value of the brk (which may be the same as the old, or otherwise differ from the requested brk, on failure). it may be beneficial to eventually just eliminate this file and make the syscalls inline in malloc.c. --- diff --git a/src/malloc/__brk.c b/src/malloc/__brk.c index 0b561ea0..4c9119b4 100644 --- a/src/malloc/__brk.c +++ b/src/malloc/__brk.c @@ -3,5 +3,5 @@ uintptr_t __brk(uintptr_t newbrk) { - return syscall(SYS_brk, newbrk); + return __syscall(SYS_brk, newbrk); }