From nobody Tue Feb 25 11:48:09 2025 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 4Z2G7s4LzHz5pjnW; Tue, 25 Feb 2025 11:48:09 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z2G7s2rqbz3kK9; Tue, 25 Feb 2025 11:48:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740484089; 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=h/jyf3EV2ZXeGS3uNuhE4qsAzp6ADMqX34ZYeSnnjsw=; b=Tn6cGg861hZ20ZcsboKzbWMtK8QSNDBPPGse2DaDdoZIn9W7Lp2e0zsaGLaEQnUtav8lMs kcBRnUOUpciiq7sSXoLoHQW0iHz7NZyaTOeTCPlghTbSTYhKMK+LpVpIp5uVVo+191pOg2 V7JkmmUEdau+iZys5kOxqWchrGWFl/Mu6DlaxYNq8c40/1ftJAp8rZVU282w+8aKEr+VHu JaBCVrr9TrCWiI156UVWLxkYfViARLH5xD8RLhB+NB6F5/NAqAc470ZYclIdoCIbsqgRsK /+4JQ59uJjKGhyFA1yihUqcd220e+2UCnaphb4vrYxIQogpdMM34VmWPaAwMsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740484089; a=rsa-sha256; cv=none; b=rec+QrV2NKV3nUBOm2vraB0pfK739B26FEX+5R025mkLASIe8j3p+dqrbaTB4oYTEP0vuB dTNB+wZ4ZVgqEwsqfCdSO2TVQJL72Yrmr7zRfAuX2Yw696QG80e/3UulAea3uFLtr72CO5 uouL1QblKN5sh0dO3jsEeJOGCPOrPnPCa8wZBhlTOZmleIzZFD+B3GOyfMcqFYRLTyAGrv VqQmHWvdjDLMULxDf9j4uUb12Q8dzBhqvtD1mG3RBhO4O2ymHo1tQ+xvrifMMiovccBVFr 4oaGTp5vlBMMLMq78XNrYxsnP7h4q/BLrHAZ+0YAwUAyuykuqgbgxCFtfTagOA== 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=1740484089; 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=h/jyf3EV2ZXeGS3uNuhE4qsAzp6ADMqX34ZYeSnnjsw=; b=k9dEWc4WjEgF2P8uFSH3djJWY40Vmj5Z4y6RdJgW5seF8rgw5M2OK5BsNWVMUvVZpBbtPB nUeVMVkR71jmuSICmYI/QZstCoq/K2UPcD2N4VVFJwQ7D6/qXw+b75tV0NP9pmNskteWaZ TXqidnTq770m1y5osw4OG9RKrUiFdIpNKtrx+nkdajrpktc/eIXdQS8loxwyXxbbUPrWqu Dx3quAozH8XbiICel4rcH8hD0Qax5hSqgR4aqSucCxsOc35C8DAIx5ldZsLglzjkSGJBUO 2idqN8LLfV+ErpkzbgcHQRlPUxlI08552OGdK6ZU0E/zPVVdbaOE/F0Qu+dPxQ== 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 4Z2G7s1zFhz8pg; Tue, 25 Feb 2025 11:48:09 +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 51PBm9Vw050732; Tue, 25 Feb 2025 11:48:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51PBm9x1050729; Tue, 25 Feb 2025 11:48:09 GMT (envelope-from git) Date: Tue, 25 Feb 2025 11:48:09 GMT Message-Id: <202502251148.51PBm9x1050729@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: 164651f16c86 - main - sound: Do not return an error from chn_notify() if the children list is empty 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: 164651f16c860049a4ad2098206def8ca7a39b4a Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=164651f16c860049a4ad2098206def8ca7a39b4a commit 164651f16c860049a4ad2098206def8ca7a39b4a Author: Christos Margiolis AuthorDate: 2025-02-25 11:42:59 +0000 Commit: Christos Margiolis CommitDate: 2025-02-25 11:42:59 +0000 sound: Do not return an error from chn_notify() if the children list is empty An empty children list does not mean that there is an error. Reported by: Florian Walpen Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D48156 --- sys/dev/sound/pcm/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c index 4b0ca128391b..4d275d00762a 100644 --- a/sys/dev/sound/pcm/channel.c +++ b/sys/dev/sound/pcm/channel.c @@ -2360,7 +2360,7 @@ chn_notify(struct pcm_channel *c, u_int32_t flags) CHN_LOCKASSERT(c); if (CHN_EMPTY(c, children)) - return (ENODEV); + return (0); err = 0;