Module Name:    src
Committed By:   joerg
Date:           Sun Oct  4 08:19:13 UTC 2015

Modified Files:
        src/sys/arch/sparc/sparc: syscall.c

Log Message:
Unsigned values can not be negative.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/sparc/sparc/syscall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/sparc/syscall.c
diff -u src/sys/arch/sparc/sparc/syscall.c:1.28 src/sys/arch/sparc/sparc/syscall.c:1.29
--- src/sys/arch/sparc/sparc/syscall.c:1.28	Wed Jun 26 16:53:34 2013
+++ src/sys/arch/sparc/sparc/syscall.c	Sun Oct  4 08:19:13 2015
@@ -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 @@ getargs(struct proc *p, struct trapframe
 		break;
 	}
 
-	if (*code < 0 || *code >= p->p_emul->e_nsysent)
+	if (*code >= p->p_emul->e_nsysent)
 		return ENOSYS;
 
 	*callp += *code;

Reply via email to