xtensa: use NO_SYSCALL instead of -1

For the sake of clarity define macro NO_SYSCALL and use it for
setting/checking struct pt_regs::syscall field.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov
2018-11-09 15:43:14 -08:00
parent 98c3115a4e
commit 6a986984b6
4 ha cambiato i file con 8 aggiunte e 6 eliminazioni

Vedi File

@@ -491,7 +491,7 @@ unsigned long do_syscall_trace_enter(struct pt_regs *regs)
{
if (test_thread_flag(TIF_SYSCALL_TRACE) &&
tracehook_report_syscall_entry(regs))
return -1;
return NO_SYSCALL;
return regs->areg[2];
}