From nobody Fri Oct 18 08:45:01 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 4XVJDZ0M0Mz5YwDm; Fri, 18 Oct 2024 08:45:02 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XVJDY5Kj1z4mLJ; Fri, 18 Oct 2024 08:45:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729241101; 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=88g9iLLT/ueQYEIayzoq737dZXQpyVar4SwdO7XEF+c=; b=Obdrpgo8BwLjbd+xwSUclaR3Pi5iKGooo3RuldCDjW01PJcniXOGTm59aeyTvkGGPeK6bg ZXU21SBTAw52o1HGwxa7s9BloX7ADO2e806QFc61y0Nx0iDB400J+QztrKKNRSbqm15WdQ 8ZlwccLijfvzyj8F4N28C40CpwIbpexkO0m9lLJGZeMebTZ87rvuktlOdkyt6nK6Hf0rRG 6Xr8PWD5y4LVd2vU8l9YlBIrRxphz6iJh5KSXx0PAemuCz2fNFv+iE1WjBRZ3bfQx5yUUQ NVgmb46ekHvcMrXFLTBkgXfzh4iboIxuDeRishZ9UvNjFvvwNEzo8XSn2Y4HBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729241101; 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=88g9iLLT/ueQYEIayzoq737dZXQpyVar4SwdO7XEF+c=; b=ps7/PGUqkiKvQ0vPz619Tbp0LXghXFDE4HTvtPi+BvOsWXkYJHzYzOillteOEl69+vLyKl pBpkgIDYtK9vKW/xBfRAeoSiQrb649x075QKZDWq54rT/knjCBuoQ0XNvS0tpzzekY2CEx fTFih4VOLivL56lN3TS9InILwf9MKfOwPfJsXDzJvQQ/C7rzMa0AZH7cDCLwrN0Q7WyyuJ YNp0KXOxz4tCsdXCzuGINYXh2pg+zEuZe2dv512tkIG5PSjjBjyNzzvhBra1k/oODWn3fv ZmvAQ63ZdC+fxlYsRx4ArJcYZtAj9Kra614jK8pwJ+NvAyDnN2YQZsBKyxVzqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729241101; a=rsa-sha256; cv=none; b=vQ7BLKzx0EGMbFvg1bQVJgN0mKFmwj4qLACnximl00xJ8uSqPx9qAxkNiP8Z5ZwGtVuRfh Jial+YyrX1D82bVp0k0mzLeaAUFgdPqAiskq+yt9iPDimvfGrteJoJfavyFcTu6bCfNNx1 dykKVoNbO/84Gt80Ze7MEpO0mjmW99sI7AFLCNs/E/N4UGCOEJ3ZyykDL6kVeA7XSC39dk iDpIUvr0Bh1h71bbHABAqBFkhwJpzEtenzkKWVuxD5FjnkbC3JF1DaAhVVj5fMSKdz71nw W7+IWgdU0R0xT+bHjrp2HgB6zggDR8uT9PC9Pl6GlKCB4vHXmORPODiAIpduew== 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 4XVJDY4x87zRnn; Fri, 18 Oct 2024 08:45:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49I8j1w8088196; Fri, 18 Oct 2024 08:45:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49I8j1ZA088193; Fri, 18 Oct 2024 08:45:01 GMT (envelope-from git) Date: Fri, 18 Oct 2024 08:45:01 GMT Message-Id: <202410180845.49I8j1ZA088193@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: f3092614bcae - main - sound: Remove useless newspd check in sysctl_dev_pcm_vchanrate() 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: f3092614bcae949332a8f21f7b78ba68b3ee5899 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=f3092614bcae949332a8f21f7b78ba68b3ee5899 commit f3092614bcae949332a8f21f7b78ba68b3ee5899 Author: Christos Margiolis AuthorDate: 2024-10-18 08:40:33 +0000 Commit: Christos Margiolis CommitDate: 2024-10-18 08:40:33 +0000 sound: Remove useless newspd check in sysctl_dev_pcm_vchanrate() feeder_rate_min functions as the lower boundary. Sponsored by: The FreeBSD Foundation MFC after: 2 days Reviewed by: dev_submerge.ch, markj, emaste Differential Revision: https://reviews.freebsd.org/D46834 --- sys/dev/sound/pcm/vchan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c index 9046c144b41b..8580eb679f35 100644 --- a/sys/dev/sound/pcm/vchan.c +++ b/sys/dev/sound/pcm/vchan.c @@ -508,8 +508,7 @@ sysctl_dev_pcm_vchanrate(SYSCTL_HANDLER_ARGS) return (ret); } - if (newspd < 1 || newspd < feeder_rate_min || - newspd > feeder_rate_max) { + if (newspd < feeder_rate_min || newspd > feeder_rate_max) { PCM_RELEASE_QUICK(d); return (EINVAL); }