summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-01-29 10:29:14 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-01-29 10:29:14 +0000
commitf0a631d52235cfabec2ccc253ed0cbeae0e78571 (patch)
tree6d3882012c4c2fd72f5d9c84511675f2a99cab1a /sys
parent274b9446d1440984cae7ba4f5ef62e69f1effe0d (diff)
downloadFreeBSD-src-f0a631d52235cfabec2ccc253ed0cbeae0e78571.zip
FreeBSD-src-f0a631d52235cfabec2ccc253ed0cbeae0e78571.tar.gz
Patch from Julian. Commit message by me.
Cuddle { braces up where possible on if statements Add missing splx(s) calls before some returns. Remove extra semicolon that was keeping uha_init from returning before the timeout occured. This should speed probing up quite a bit!
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/ultra14f.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/i386/isa/ultra14f.c b/sys/i386/isa/ultra14f.c
index 5f6d7b0..d1bfc1d 100644
--- a/sys/i386/isa/ultra14f.c
+++ b/sys/i386/isa/ultra14f.c
@@ -19,7 +19,7 @@
* commenced: Sun Sep 27 18:14:01 PDT 1992
* slight mod to make work with 34F as well: Wed Jun 2 18:05:48 WST 1993
*
- * $Id: ultra14f.c,v 1.13 1993/11/25 01:31:50 wollman Exp $
+ * $Id: ultra14f.c,v 1.14 1993/12/19 00:50:46 wollman Exp $
*/
#include <sys/types.h>
@@ -340,8 +340,7 @@ uha_abort(int unit, struct mscp *mscp)
break;
DELAY(10);
}
- if (spincount == 0);
- {
+ if (spincount == 0) {
printf("uha%d: uha_abort, board not responding\n", unit);
Debugger("ultra14f");
}
@@ -359,9 +358,11 @@ uha_abort(int unit, struct mscp *mscp)
}
if ((inb(port + UHA_SINT) & 0x10) != 0) {
outb(port + UHA_SINT, UHA_ABORT_ACK);
+ splx(s);
return (1);
} else {
outb(port + UHA_SINT, UHA_ABORT_ACK);
+ splx(s);
return (0);
}
}
@@ -791,8 +792,8 @@ uha_init(unit)
*/
outb(port + UHA_LINT, UHA_ASRST);
while (--resetcount) {
- if (inb(port + UHA_LINT));
- break;
+ if (inb(port + UHA_LINT))
+ break;
DELAY(1000); /* 1 mSec per loop */
}
if (resetcount == 0) {
OpenPOWER on IntegriCloud