summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2011-06-03 21:14:11 +0000
committermatthew <matthew@openbsd.org>2011-06-03 21:14:11 +0000
commit58d155a8bd341acd2e73b81dea97af3abb749a0c (patch)
treebb8e802bc72a7bc8af785edf9d9be535536ee1f7 /sys/kern/subr_disk.c
parentone midicat server can export multiple midithru ports (diff)
downloadwireguard-openbsd-58d155a8bd341acd2e73b81dea97af3abb749a0c.tar.xz
wireguard-openbsd-58d155a8bd341acd2e73b81dea97af3abb749a0c.zip
Get rid of the wlabel argument to bounds_check_with_label(). It's
never done anything in OpenBSD and just clutters disk drivers with silly flag handling. More cleanup to follow. ok deraadt@, millert@; no objections krw@
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 1e063759210..088ec406203 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.122 2011/06/01 17:57:51 matthew Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.123 2011/06/03 21:14:11 matthew Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -684,7 +684,7 @@ setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_int openmask)
* early completion.
*/
int
-bounds_check_with_label(struct buf *bp, struct disklabel *lp, int wlabel)
+bounds_check_with_label(struct buf *bp, struct disklabel *lp)
{
struct partition *p = &lp->d_partitions[DISKPART(bp->b_dev)];
daddr64_t sz = howmany(bp->b_bcount, DEV_BSIZE);