From 1e73718e897176d148b3cf5709cf6c5e996954b0 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Sun, 19 Jun 2011 04:11:49 +0000 Subject: Kill the "lockname" argument to disk_construct(). ok deraadt@ --- sys/kern/subr_disk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern') 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 -- cgit v1.2.3