in include/asm/syscall.h [36:40]
static inline long syscall_get_error(struct task_struct *task, struct pt_regs *regs) { return IS_ERR_VALUE(regs->r00) ? regs->r00 : 0; }