summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/fd.c5
-rw-r--r--sys/dev/isa/mcd.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c
index b16144f4dac..028b436cef8 100644
--- a/sys/dev/isa/fd.c
+++ b/sys/dev/isa/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.54 2006/08/13 03:36:24 krw Exp $ */
+/* $OpenBSD: fd.c,v 1.55 2006/08/13 16:24:12 krw Exp $ */
/* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */
/*-
@@ -988,8 +988,7 @@ fdioctl(dev, cmd, addr, flag, p)
lp->d_flags = D_REMOVABLE;
lp->d_partitions[RAW_PART].p_offset = 0;
- lp->d_partitions[RAW_PART].p_size =
- lp->d_secperunit * (lp->d_secsize / DEV_BSIZE);
+ lp->d_partitions[RAW_PART].p_size = lp->d_secperunit;
lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
lp->d_npartitions = RAW_PART + 1;
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c
index 7207a858464..47cb7b5cafd 100644
--- a/sys/dev/isa/mcd.c
+++ b/sys/dev/isa/mcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcd.c,v 1.39 2006/03/15 20:20:41 miod Exp $ */
+/* $OpenBSD: mcd.c,v 1.40 2006/08/13 16:24:13 krw Exp $ */
/* $NetBSD: mcd.c,v 1.60 1998/01/14 12:14:41 drochner Exp $ */
/*
@@ -738,8 +738,7 @@ mcdgetdisklabel(dev, sc, lp, clp, spoofonly)
lp->d_flags = D_REMOVABLE;
lp->d_partitions[RAW_PART].p_offset = 0;
- lp->d_partitions[RAW_PART].p_size =
- lp->d_secperunit * (lp->d_secsize / DEV_BSIZE);
+ lp->d_partitions[RAW_PART].p_size = lp->d_secperunit;
lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
lp->d_npartitions = RAW_PART + 1;