Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Unsigned values can not be negative.
details: https://anonhg.NetBSD.org/src/rev/b5077bcd9737
branches: trunk
changeset: 340830:b5077bcd9737
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Oct 04 08:19:13 2015 +0000
description:
Unsigned values can not be negative.
diffstat:
sys/arch/sparc/sparc/syscall.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 332558d929fe -r b5077bcd9737 sys/arch/sparc/sparc/syscall.c
--- a/sys/arch/sparc/sparc/syscall.c Sun Oct 04 08:18:49 2015 +0000
+++ b/sys/arch/sparc/sparc/syscall.c Sun Oct 04 08:19:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.28 2013/06/26 16:53:34 matt Exp $ */
+/* $NetBSD: syscall.c,v 1.29 2015/10/04 08:19:13 joerg Exp $ */
/*
* Copyright (c) 1996
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.28 2013/06/26 16:53:34 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.29 2015/10/04 08:19:13 joerg Exp $");
#include "opt_sparc_arch.h"
#include "opt_multiprocessor.h"
@@ -143,7 +143,7 @@
break;
}
- if (*code < 0 || *code >= p->p_emul->e_nsysent)
+ if (*code >= p->p_emul->e_nsysent)
return ENOSYS;
*callp += *code;
Home |
Main Index |
Thread Index |
Old Index