From dda2670f1e9def0681dfa506b1089aec71655bdb Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 25 Oct 2021 19:51:13 +0000 Subject: remove dtp_mtx which protected dtp_ref; the code is always called with KERNEL_LOCK() held --- sys/dev/dt/dt_dev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/dt') diff --git a/sys/dev/dt/dt_dev.c b/sys/dev/dt/dt_dev.c index 7c781df0d0f..fac53552f8f 100644 --- a/sys/dev/dt/dt_dev.c +++ b/sys/dev/dt/dt_dev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dt_dev.c,v 1.15 2021/09/03 16:45:45 jasper Exp $ */ +/* $OpenBSD: dt_dev.c,v 1.16 2021/10/25 19:51:12 millert Exp $ */ /* * Copyright (c) 2019 Martin Pieuchot @@ -530,8 +530,6 @@ dt_dev_alloc_probe(const char *func, const char *name, struct dt_provider *dtpv) dtp->dtp_sysnum = -1; dtp->dtp_ref = 0; - mtx_init(&dtp->dtp_mtx, IPL_HIGH); - return dtp; } -- cgit v1.2.3