aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2002-02-11 05:46:25 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2002-02-11 05:46:25 +0000
commit49d069f6692a716175edddedd48b60253c461bd9 (patch)
treef2bfeabb7c08a5929bfa838e36c0e338c9e5ed9d /sys/pc98
parentbd438056e41d7cafa68ed6db35e157655d1c996b (diff)
Notes
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/atapi.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/pc98/pc98/atapi.c b/sys/pc98/pc98/atapi.c
index 84f3ee23e8e8..ab1f7fd12796 100644
--- a/sys/pc98/pc98/atapi.c
+++ b/sys/pc98/pc98/atapi.c
@@ -253,11 +253,14 @@ int atapi_attach (int ctlr, int unit, int port)
case AT_TYPE_DIRECT: /* direct-access */
#if NWFD > 0
/* ATAPI Floppy(LS-120) */
- if (wfdattach (ata, unit, ap, ata->debug) < 0)
- break;
+ if (wfdattach (ata, unit, ap, ata->debug) >= 0) {
/* Device attached successfully. */
- ata->attached[unit] = 1;
- return (1);
+ ata->attached[unit] = 1;
+ return (1);
+ }
+#endif
+#if NWCD > 0
+ /* FALLTHROUGH */
#else
printf ("wdc%d: ATAPI Floppies not configured\n", ctlr);
break;