Date: Sat, 04 Jul 2026 09:37:27 +0000 From: Christos Margiolis <christos@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: b2ee6be16f79 - stable/15 - sound: Use sx_assert instead of KASSERT(sx_xlocked()) Message-ID: <6a48d457.4651d.188842c0@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=b2ee6be16f79986f3288e53c88e630d55290576d commit b2ee6be16f79986f3288e53c88e630d55290576d Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2026-06-27 14:25:27 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2026-07-04 09:37:15 +0000 sound: Use sx_assert instead of KASSERT(sx_xlocked()) It's redundant. Sponsored by: The FreeBSD Foundation MFC after: 1 week (cherry picked from commit 72acd1720af365e6fd186cc1706994d72c43650a) --- sys/dev/sound/sndstat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/sound/sndstat.c b/sys/dev/sound/sndstat.c index c28a932c784e..5ef6136f6f88 100644 --- a/sys/dev/sound/sndstat.c +++ b/sys/dev/sound/sndstat.c @@ -173,8 +173,7 @@ sndstat_remove_all_userdevs(struct sndstat_file *pf) { struct sndstat_userdev *ud; - KASSERT( - sx_xlocked(&pf->lock), ("%s: Called without pf->lock", __func__)); + sx_assert(&pf->lock, SX_XLOCKED); while ((ud = TAILQ_FIRST(&pf->userdev_list)) != NULL) { TAILQ_REMOVE(&pf->userdev_list, ud, link); free(ud->provider, M_DEVBUF);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a48d457.4651d.188842c0>
