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 Return zero instead of error, otherwise...



details:   https://anonhg.NetBSD.org/src/rev/376bd0c35c4b
branches:  trunk
changeset: 347123:376bd0c35c4b
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Aug 15 08:43:19 2016 +0000

description:
Return zero instead of error, otherwise it looks like it is supposed to
return an error; found by brainy.

diffstat:

 sys/arch/sparc/sparc/emul.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 61bb67cd5021 -r 376bd0c35c4b sys/arch/sparc/sparc/emul.c
--- a/sys/arch/sparc/sparc/emul.c       Mon Aug 15 08:40:23 2016 +0000
+++ b/sys/arch/sparc/sparc/emul.c       Mon Aug 15 08:43:19 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emul.c,v 1.18 2015/11/27 13:45:17 joerg Exp $  */
+/*     $NetBSD: emul.c,v 1.19 2016/08/15 08:43:19 maxv Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.18 2015/11/27 13:45:17 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.19 2016/08/15 08:43:19 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -84,7 +84,7 @@
        int error = 0;
 
        if (i == 0)
-               return error;
+               return 0;
        else if (i < 16)
                GPR(tf, i) = *(const int32_t *) val;
        else



Home | Main Index | Thread Index | Old Index