diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2002-07-16 14:34:38 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2002-07-16 14:34:38 +0000 |
| commit | 5d4a0e12cac792a23a7f36c5728cc73b5723c804 (patch) | |
| tree | 0747ab4f3625b5c6c62051f24bab707d94ee7526 /sys/pc98 | |
| parent | 828191256bb97a4d690b144cb03a9e61fd8fd45a (diff) | |
Notes
Diffstat (limited to 'sys/pc98')
| -rw-r--r-- | sys/pc98/cbus/fdc.c | 3 | ||||
| -rw-r--r-- | sys/pc98/pc98/fd.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c index b5370b6ba425..6e9fd4104e0f 100644 --- a/sys/pc98/cbus/fdc.c +++ b/sys/pc98/cbus/fdc.c @@ -879,8 +879,7 @@ static int pc98_fd_check_ready(fdu_t fdu) DELAY(100); out_fdc(fdc, fdu); /* Drive number */ DELAY(100); - fd_in(fdc, &status); - if ((status & NE7_ST3_RD)) { + if ((fd_in(fdc, &status) == 0) && (status & NE7_ST3_RD)) { fdctl_wr(fdc, FDC_DMAE | FDC_MTON); DELAY(10); return 0; diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c index b5370b6ba425..6e9fd4104e0f 100644 --- a/sys/pc98/pc98/fd.c +++ b/sys/pc98/pc98/fd.c @@ -879,8 +879,7 @@ static int pc98_fd_check_ready(fdu_t fdu) DELAY(100); out_fdc(fdc, fdu); /* Drive number */ DELAY(100); - fd_in(fdc, &status); - if ((status & NE7_ST3_RD)) { + if ((fd_in(fdc, &status) == 0) && (status & NE7_ST3_RD)) { fdctl_wr(fdc, FDC_DMAE | FDC_MTON); DELAY(10); return 0; |
