summaryrefslogtreecommitdiff
path: root/sys/dev/ccd.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/ccd.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/ccd.c')
-rw-r--r--sys/dev/ccd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c
index dc098e2379c..7009bb00642 100644
--- a/sys/dev/ccd.c
+++ b/sys/dev/ccd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccd.c,v 1.72 2007/04/28 12:32:13 krw Exp $ */
+/* $OpenBSD: ccd.c,v 1.73 2007/06/01 00:07:48 krw Exp $ */
/* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */
/*-
@@ -1385,11 +1385,6 @@ ccdgetdisklabel(dev_t dev, struct ccd_softc *cs, struct disklabel *lp,
lp->d_interleave = 1;
lp->d_flags = 0;
- 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(cs->sc_dkdev.dk_label);