mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00: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
This commit is contained in:
parent
e56c8996fc
commit
7cc1afc558
|
@ -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