summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-09-05 21:43:31 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-09-05 21:43:31 +0000
commitd8ac3c9e54a89f58d4bff30473488e2b4ca95596 (patch)
tree88d4ffd3b17f7f6f69b566060adb642807ec957a
parent5b3bcebf744b244131ca98ce5c2cd3ddec28449d (diff)
style
-rw-r--r--sys/dev/ic/wdc.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index 73dd313768b..de16826fa3c 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.8 1999/08/05 00:12:09 niklas Exp $ */
+/* $OpenBSD: wdc.c,v 1.9 1999/09/05 21:43:30 niklas Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -182,19 +182,16 @@ wdc_select_drive(chp, drive, howlong)
int drive;
int howlong;
{
-
- if (wait_for_unbusy(chp, howlong)) {
+ if (wait_for_unbusy (chp, howlong))
return -1;
- }
bus_space_write_1(chp->cmd_iot, chp->cmd_ioh, wd_sdh,
WDSD_IBM | (drive << 4));
delay(1);
- if (wdcwait(chp, WDCS_DRQ, 0, howlong)) {
+ if (wdcwait(chp, WDCS_DRQ, 0, howlong))
return -1;
- }
return 0;
}
@@ -539,7 +536,7 @@ wdcstart(chp)
chp = xfer->chp;
if ((chp->ch_flags & WDCF_ACTIVE) != 0 ) {
- return; /* channel aleady active */
+ return; /* channel already active */
}
#ifdef DIAGNOSTIC
if ((chp->ch_flags & WDCF_IRQ_WAIT) != 0)