From nobody Sun Apr 28 19:49:08 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VSH8h6Lgvz5JqyQ; Sun, 28 Apr 2024 19:49:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VSH8h29Wdz42XH; Sun, 28 Apr 2024 19:49:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714333748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cA9+9Ce8R9GzB23u0P79z+h4xiJp2Nu0wtxS2UWmo58=; b=sstKEFSoU5ywlladund/Wkw6lQ7PdNbdezHB6VBL1Tyg6q+FhYEzLo9v9GZxaaYa3sNsSF /hmtPxGY9CE8FViHVrmjmB3xrwxEcuPcezNPyeM+EpfDZFb3o2os2BYQl1dYgbVABZPdcO 62mVl+DsDHcubp1A0bkP1FMnBhX9aOX7klLO7mTEwKeVoLzK7cn0fX62eKI21IAekkij9h 9rnfQQqfqmkYIsKT0A3rRM++wqpjaMm6OnLsyWxLPboccoQgPA5YTrvkmBGC9DTIYjXcBj VBsbjjP76PXjZJIdYE+xCmXABEbi9C4l7W3aP8s0GE84zCRrPhZzi25Num4/IA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714333748; a=rsa-sha256; cv=none; b=no/U1731cXHNd25ipsG6VMvNMVJdGLBSFRN8TjOfZ1CJioRRb1Rfc4vzp/ZzrO0wvt1BcR QUMkYTCPBj8NcaMKBJVHvvdr0H0AEIRNDcFujMrQdJ0yRdEgWzZ0qer4wFo5JSMfC7zUXE zHYhPs/0GpFQMQTj+/3FmoqTJ1LegJrKEz005iEfjOv8pBDHF3TQsxvFuG/2TO+o1XsyjH hPbaM/zfNq/GxVZFTMtGT/90iBtoEtJHqOkM2fM1+9mOqjweGxsAIMYwF/BVutqKJvvQqS GT+BvBJt8YmIPopLfDxl0HV5i0AN0lPvm4HXmeDDpvhbpoQo9JPD7bz1WJ96HQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714333748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cA9+9Ce8R9GzB23u0P79z+h4xiJp2Nu0wtxS2UWmo58=; b=D7p/8a9/LSAsVPdIACuL+8VhqwLR71cgBbnbDVZoBqWluVk8a37wuEJu1A+3NHIzvoz3xN zVktXVAeXAi9veSIQm/pkrax5R6qb7ImdamXwliDoWNR8em01kPRdenjVinKxcU6hwDdUg YAAMy1NQm7YtRYY3p66MgSWQp5/qme30bnGzALraVrxOPB6kcd2IxrTGY9QI2n9iolff8o mZdVZNistwU6T4EsBJ23vTG8sI+7+CziXdiLDKyOHQKkO8/8Bxvxdigv5M3gpi1qf5E21B ap6XhNA8CIS1Cu9BT2bV4N6aPygjjEgaF9n+AHqDFltu5MOGaAq7CF9PjlalpA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VSH8h1hYdzdpY; Sun, 28 Apr 2024 19:49:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43SJn8FJ063661; Sun, 28 Apr 2024 19:49:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43SJn8o2063658; Sun, 28 Apr 2024 19:49:08 GMT (envelope-from git) Date: Sun, 28 Apr 2024 19:49:08 GMT Message-Id: <202404281949.43SJn8o2063658@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 7cc1afc55890 - main - sound: Remove chn_timeout check from chn_init() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7cc1afc5589000ac6ad7a908b07fad3401367bd1 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=7cc1afc5589000ac6ad7a908b07fad3401367bd1 commit 7cc1afc5589000ac6ad7a908b07fad3401367bd1 Author: Christos Margiolis AuthorDate: 2024-04-28 19:47:33 +0000 Commit: Christos Margiolis 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;