summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/isp.c6
-rw-r--r--sys/kern/init_main.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ic/isp.c b/sys/dev/ic/isp.c
index c23d1089bd5..15de82d85dc 100644
--- a/sys/dev/ic/isp.c
+++ b/sys/dev/ic/isp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp.c,v 1.39 2007/05/23 01:32:25 ray Exp $ */
+/* $OpenBSD: isp.c,v 1.40 2007/10/16 23:41:42 fgsch Exp $ */
/*
* Machine and OS Independent (well, as best as possible)
* code for the Qlogic ISP SCSI adapters.
@@ -3498,8 +3498,8 @@ again:
if (mbox & 0x4000) {
isp->isp_intmboxc++;
if (isp->isp_mboxbsy) {
- int i = 0, obits = isp->isp_obits;
- isp->isp_mboxtmp[i++] = mbox;
+ int obits = isp->isp_obits;
+ isp->isp_mboxtmp[0] = mbox;
for (i = 1; i < MAX_MAILBOX; i++) {
if ((obits & (1 << i)) == 0) {
continue;
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 98c75f5e618..fd20f4f24a6 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.145 2007/10/10 15:53:53 art Exp $ */
+/* $OpenBSD: init_main.c,v 1.146 2007/10/16 23:41:42 fgsch Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -395,7 +395,6 @@ main(void *framep)
#if !defined(NO_PROPOLICE)
{
volatile long newguard[8];
- int i;
arc4random_bytes((long *)newguard, sizeof(newguard));