aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2026-06-27 14:25:27 +0000
committerChristos Margiolis <christos@FreeBSD.org>2026-06-27 14:26:53 +0000
commit72acd1720af365e6fd186cc1706994d72c43650a (patch)
treeada028817f97517fc699771b28b452f338e709aa
parentd05d60e958bca778ea193932facb026c48d7ca0b (diff)
sound: Use sx_assert instead of KASSERT(sx_xlocked())
It's redundant. Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/dev/sound/sndstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/sound/sndstat.c b/sys/dev/sound/sndstat.c
index 68902012563e..963be5ba0458 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);