summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2003-12-07 23:20:53 +0000
committertruckman <truckman@FreeBSD.org>2003-12-07 23:20:53 +0000
commit87a37b565f34f80514db04e4ee3644fb3e4e50e7 (patch)
tree08763dca3d8a0aa36d997c2f47081e2a4a552a68 /sys/geom/geom_disk.c
parent7df01b5cbc8defa98cbd9592a515ff05b77f3093 (diff)
downloadFreeBSD-src-87a37b565f34f80514db04e4ee3644fb3e4e50e7.zip
FreeBSD-src-87a37b565f34f80514db04e4ee3644fb3e4e50e7.tar.gz
Correct usage of mtx_init() API. This is not a functional change since
the code happened to work because MTX_DEF and NULL are both defined as 0. Reviewed by: phk
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r--sys/geom/geom_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index b2a3717..9d40cfc 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -72,7 +72,7 @@ static void
g_disk_init(struct g_class *mp __unused)
{
- mtx_init(&g_disk_done_mtx, "g_disk_done", MTX_DEF, 0);
+ mtx_init(&g_disk_done_mtx, "g_disk_done", NULL, MTX_DEF);
}
static void
OpenPOWER on IntegriCloud