summaryrefslogtreecommitdiff
path: root/sys/dev/isa/fd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-06-01 00:07:49 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-06-01 00:07:49 +0000
commit50b189678902e9ab33471bd656c5e3a65520d9c3 (patch)
tree6a12648df155641161433115c6f6ae947b139b04 /sys/dev/isa/fd.c
parentde25703b03d0b81b319602e0e00a300f49f80058 (diff)
Don't initialize d_partitions[RAW_DISK] just before calling
readdisklabel(), since all readdisklabel()'s do that already. ok deraadt@
Diffstat (limited to 'sys/dev/isa/fd.c')
-rw-r--r--sys/dev/isa/fd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c
index c46967b86ad..3d824ea5e26 100644
--- a/sys/dev/isa/fd.c
+++ b/sys/dev/isa/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.62 2007/05/08 20:59:39 deraadt Exp $ */
+/* $OpenBSD: fd.c,v 1.63 2007/06/01 00:07:48 krw Exp $ */
/* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */
/*-
@@ -986,11 +986,6 @@ fdioctl(dev, cmd, addr, flag, p)
lp->d_rpm = 300;
lp->d_interleave = 1;
- lp->d_partitions[RAW_PART].p_offset = 0;
- 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;
-
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;
lp->d_checksum = dkcksum(lp);