From 50b189678902e9ab33471bd656c5e3a65520d9c3 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Fri, 1 Jun 2007 00:07:49 +0000 Subject: Don't initialize d_partitions[RAW_DISK] just before calling readdisklabel(), since all readdisklabel()'s do that already. ok deraadt@ --- sys/arch/sparc64/dev/fd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c index e2c4413ec1e..313db79d502 100644 --- a/sys/arch/sparc64/dev/fd.c +++ b/sys/arch/sparc64/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.11 2007/05/28 22:17:21 pyr Exp $ */ +/* $OpenBSD: fd.c,v 1.12 2007/06/01 00:07:48 krw Exp $ */ /* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */ /*- @@ -2020,11 +2020,6 @@ fdgetdisklabel(dev) strncpy(lp->d_packname, "fictitious", sizeof(lp->d_packname)); lp->d_interleave = 1; - lp->d_partitions[RAW_PART].p_offset = 0; - lp->d_partitions[RAW_PART].p_size = lp->d_secpercyl * lp->d_ncylinders; - 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); -- cgit v1.2.3