sched_setaffinity: use the same style with glibc's
commit85baf42330a75ffa55e75625b80e743780dcccbf
authorGuo Ren <ren_guo@c-sky.com>
Tue, 7 Aug 2018 12:43:21 +0000 (7 20:43 +0800)
committerWaldemar Brodkorb <wbx@openadk.org>
Thu, 16 Aug 2018 19:42:42 +0000 (16 21:42 +0200)
tree2dfcaf6de54c720801cc86fa80e7ee7813abbfa9
parent13c46fbc1e5a021f2b9ed32d83aecc93ae5e655d
sched_setaffinity: use the same style with glibc's

Call getpid() in INTERNAL_SYSCALL will break the argument regs,
because gcc couldn't save destoryed regs for system call asm.

Ref to glibc, we could just remove all the check code.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
libc/sysdeps/linux/common/sched_setaffinity.c