diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-05-27 21:19:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-05-27 21:19:32 +0000 |
commit | 50550df142341c7b10d54e844e7336bb689ad85d (patch) | |
tree | 50032508b68ba911282f534c5ea47823ae474138 /sys/dev/ic | |
parent | e8acf00c224fc610ec668fd950ee5f85e3219f31 (diff) |
Fix edge cases of uninitialized variables. In my tree for too long, I even
got ok's for azalia but I don't remember from whom.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/siop.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c index 9cf5af91da5..263db8e03af 100644 --- a/sys/dev/ic/siop.c +++ b/sys/dev/ic/siop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siop.c,v 1.65 2011/06/23 16:31:16 deraadt Exp $ */ +/* $OpenBSD: siop.c,v 1.66 2013/05/27 21:19:31 miod Exp $ */ /* $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */ /* @@ -634,6 +634,8 @@ siop_intr(v) goto end; } need_reset = 1; + } else { + sist = sstat1 = 0; } if (need_reset) { reset: @@ -1049,7 +1051,8 @@ scintr: goto reset; } return 1; - } + } else + irqcode = 0; /* We can get here if ISTAT_DIP and DSTAT_DFE are the only bits set. */ /* But that *SHOULDN'T* happen. It does on powerpc (at least). */ printf("%s: siop_intr() - we should not be here!\n" |