diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-08-12 18:08:12 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-08-12 18:08:12 +0000 |
commit | 62cd5679d1c443f08dd14b95d96ec897c798d347 (patch) | |
tree | d9e3310dd769236157ef2f541538cd09ff1eb23d /sys | |
parent | 86f981f6d5564f9bb907fe1dfdb69fb76f4dfe4a (diff) |
Rather than using cs->sc_size to set d_secperunit and then RAW_PART's
p_size, use d_secperunit to set RAW_PART's p_size. This is more
consistant with other usage and makes the intent clearer.
This should be a no-op.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ccd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index bd534182322..70956dbf155 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.66 2006/07/20 18:06:44 mickey Exp $ */ +/* $OpenBSD: ccd.c,v 1.67 2006/08/12 18:08:11 krw Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -1505,7 +1505,7 @@ ccdgetdisklabel(dev_t dev, struct ccd_softc *cs, struct disklabel *lp, lp->d_flags = 0; lp->d_partitions[RAW_PART].p_offset = 0; - lp->d_partitions[RAW_PART].p_size = cs->sc_size; + 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; |