summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-06-19 04:11:49 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-06-19 04:11:49 +0000
commit1e73718e897176d148b3cf5709cf6c5e996954b0 (patch)
tree16fab8a9cac56f10fc8d1f627146ce9b46ad92fd /sys/kern
parentb9625bc6fce089540bed873507539770e0d4e548 (diff)
Kill the "lockname" argument to disk_construct().
ok deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 088ec406203..54d4d0e8189 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.123 2011/06/03 21:14:11 matthew Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.124 2011/06/19 04:11:48 matthew Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -784,7 +784,7 @@ disk_init(void)
}
int
-disk_construct(struct disk *diskp, char *lockname)
+disk_construct(struct disk *diskp)
{
rw_init(&diskp->dk_lock, "dklk");
mtx_init(&diskp->dk_mtx, IPL_BIO);
@@ -803,7 +803,7 @@ disk_attach(struct device *dv, struct disk *diskp)
int majdev;
if (!ISSET(diskp->dk_flags, DKF_CONSTRUCTED))
- disk_construct(diskp, diskp->dk_name);
+ disk_construct(diskp);
/*
* Allocate and initialize the disklabel structures. Note that