summaryrefslogtreecommitdiff
path: root/sys/dev/ata/wd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-08-12 13:53:45 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-08-12 13:53:45 +0000
commitf74250732895549b7c85a7f9636f38b94475e920 (patch)
tree78157c361443c45407c3b058b0f60682607e3c45 /sys/dev/ata/wd.c
parentb1210a15cff97e8eeb959fce89dc1d8e27c7ed15 (diff)
Setting d_secsize to DEV_BSIZE (or 1 << DEV_BSHIFT, or 512) and then
setting RAW_PART's p_size to d_secperunit * (d_secsize / DEV_BSIZE) is a waste of a few ops. And p_size should be in sectors anyway. Just set RAW_PART's p_size to d_secperunit to make usage consistant across the tree. Should be a no-op.
Diffstat (limited to 'sys/dev/ata/wd.c')
-rw-r--r--sys/dev/ata/wd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index 8ae9ccd52ee..9f30319e1b0 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.47 2006/03/05 22:49:22 krw Exp $ */
+/* $OpenBSD: wd.c,v 1.48 2006/08/12 13:53:44 krw Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -838,8 +838,7 @@ wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp)
lp->d_flags = 0;
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;