From: Denys Vlasenko Date: Tue, 12 Feb 2013 14:57:37 +0000 (+0100) Subject: Remove stray syscall result reading code on syscall entry for s390 X-Git-Tag: v4.8~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab2f40224279861110114cad81fedadd7abe9b98;p=strace Remove stray syscall result reading code on syscall entry for s390 This is a leftover from sysenter/sysexit split. I can't run-test it, but from code inspection it seems to be correct. * syscall.c (get_scno): Remove stray syscall result reading for s390[x]. Signed-off-by: Denys Vlasenko --- diff --git a/syscall.c b/syscall.c index c4e19932..68fab524 100644 --- a/syscall.c +++ b/syscall.c @@ -1330,16 +1330,6 @@ get_scno(struct tcb *tcp) return -1; #endif -#if defined(SH) - /* new syscall ABI returns result in R0 */ - if (upeek(tcp, 4*REG_REG0, (long *)&r0) < 0) - return -1; -#elif defined(SH64) - /* ABI defines result returned in r9 */ - if (upeek(tcp, REG_GENERAL(9), (long *)&sh64_r9) < 0) - return -1; -#endif - tcp->scno = scno; return 1; }