diff options
author | Christos Margiolis <christos@FreeBSD.org> | 2024-05-06 18:27:18 +0000 |
---|---|---|
committer | Christos Margiolis <christos@FreeBSD.org> | 2024-05-06 18:27:18 +0000 |
commit | 139bcec852cf2786ca839ca0bddbb2b78a23d6fa (patch) | |
tree | 87f33ced721bf3d48fdced7eddebd9d7dde28f1b /sys/dev/sound/pcm/vchan.c | |
parent | 76f95bae092b7353ff82b7a0056ca5801bb98f76 (diff) | |
download | src-139bcec852cf2786ca839ca0bddbb2b78a23d6fa.tar.gz src-139bcec852cf2786ca839ca0bddbb2b78a23d6fa.zip |
sound: Convert pcm_chn_add() to void
It always returns 0.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj, emaste
Differential Revision: https://reviews.freebsd.org/D44998
Diffstat (limited to 'sys/dev/sound/pcm/vchan.c')
-rw-r--r-- | sys/dev/sound/pcm/vchan.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c index ccac08891220..1a21b7049b77 100644 --- a/sys/dev/sound/pcm/vchan.c +++ b/sys/dev/sound/pcm/vchan.c @@ -706,13 +706,8 @@ vchan_create(struct pcm_channel *parent, int num) } /* add us to our grandparent's channel list */ - ret = pcm_chn_add(d, ch); + pcm_chn_add(d, ch); PCM_UNLOCK(d); - if (ret != 0) { - chn_kill(ch); - CHN_LOCK(parent); - return (ret); - } CHN_LOCK(parent); /* @@ -727,6 +722,7 @@ vchan_create(struct pcm_channel *parent, int num) parent->flags |= CHN_F_HAS_VCHAN; + ret = 0; parent_caps = chn_getcaps(parent); if (parent_caps == NULL) ret = EINVAL; |