mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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)
This commit is contained in:
parent
930b5a3c07
commit
0baaaf8543
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue