git: 0baaaf8543d5 - stable/14 - sound: Remove chn_timeout check from chn_init()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 May 2024 19:30:58 UTC
The branch stable/14 has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=0baaaf8543d5d88bbfe1a537e6fb7d0773fa9261
commit 0baaaf8543d5d88bbfe1a537e6fb7d0773fa9261
Author: Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2024-04-28 19:47:33 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-05-17 19:30:34 +0000
sound: Remove chn_timeout check from chn_init()
This check is not related to channel initializion, but is also
unnecessary, since sysctl_hw_snd_timeout() takes care of checking if
chn_timeout is within bounds.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D44992
(cherry picked from commit 7cc1afc5589000ac6ad7a908b07fad3401367bd1)
---
sys/dev/sound/pcm/channel.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index 0fea169e3eb7..859476f212ae 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -1164,9 +1164,6 @@ chn_init(struct pcm_channel *c, void *devinfo, int dir, int direction)
struct snd_dbuf *b, *bs;
int i, ret;
- if (chn_timeout < CHN_TIMEOUT_MIN || chn_timeout > CHN_TIMEOUT_MAX)
- chn_timeout = CHN_TIMEOUT;
-
chn_lockinit(c, dir);
b = NULL;