Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2024 19:49:08 GMT
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7cc1afc55890 - main - sound: Remove chn_timeout check from chn_init()
Message-ID:  <202404281949.43SJn8o2063658@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=7cc1afc5589000ac6ad7a908b07fad3401367bd1

commit 7cc1afc5589000ac6ad7a908b07fad3401367bd1
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2024-04-28 19:47:33 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-04-28 19:48:25 +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
---
 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404281949.43SJn8o2063658>