summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-08-08 04:46:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-08-08 04:46:26 +0000
commite653821d1952b330839a2b474720109458d1d375 (patch)
tree0aadfda2b91358aaf19b0aa1ff9aa4d4194527d7 /sys/arch/sparc
parent5674598fa06b9baf4baf8bb0d166bcfd692b2df8 (diff)
Do not depend upon an initialized variable in the common case; gives init(8)
a chance to run...
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/trap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/trap.c b/sys/arch/sparc/sparc/trap.c
index 61e67dd8cdd..e63b0acc5b5 100644
--- a/sys/arch/sparc/sparc/trap.c
+++ b/sys/arch/sparc/sparc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.60 2012/08/07 05:16:54 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.61 2012/08/08 04:46:25 miod Exp $ */
/* $NetBSD: trap.c,v 1.58 1997/09/12 08:55:01 pk Exp $ */
/*
@@ -1016,8 +1016,7 @@ syscall(code, tf, pc)
goto bad;
i = nap;
}
- if (error == 0)
- copywords(ap, args.i, i * sizeof(register_t));
+ copywords(ap, args.i, i * sizeof(register_t));
}
rval[0] = 0;