summaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2002-04-06 06:43:55 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2002-04-06 06:43:55 +0000
commit58823205c4e1eaa974e95dc9b30bb7074fbc8cd6 (patch)
treee70d6207b5313dfec33e9ef73c6c1982975a8cbe /sys/pc98
parentd7ef6277af39455fa45d1e47574dce564487a0c6 (diff)
Notes
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/fdc.c2
-rw-r--r--sys/pc98/pc98/fd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index e8b85c3758e1..483a98216d26 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -3248,7 +3248,7 @@ fdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
fdt = fd->ft;
lp->d_secpercyl = fdt->size / fdt->tracks;
lp->d_type = DTYPE_FLOPPY;
- if (readdisklabel(dkmodpart(dev, RAW_PART), lp) != NULL)
+ if (readdisklabel(dev, lp) != NULL)
error = EINVAL;
else
*(struct disklabel *)addr = *lp;
diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c
index e8b85c3758e1..483a98216d26 100644
--- a/sys/pc98/pc98/fd.c
+++ b/sys/pc98/pc98/fd.c
@@ -3248,7 +3248,7 @@ fdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
fdt = fd->ft;
lp->d_secpercyl = fdt->size / fdt->tracks;
lp->d_type = DTYPE_FLOPPY;
- if (readdisklabel(dkmodpart(dev, RAW_PART), lp) != NULL)
+ if (readdisklabel(dev, lp) != NULL)
error = EINVAL;
else
*(struct disklabel *)addr = *lp;