From nobody Sun Oct 20 11:21:50 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 4XWbcb3Sr1z5YvKL; Sun, 20 Oct 2024 11:21:51 +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 4XWbcb0wqTz4XLP; Sun, 20 Oct 2024 11:21:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729423311; 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=05DwnL41fiauwhKS27C3MK7elmXORYGUBm8A0htMy3Q=; b=FZ85jv3O35vWRbNWJQuACT7+JGK5+2f1Vto3aCRWZ10STI82Z+s5/NpL2UIqMQ7zmmCS8R AGMyBvzxfcBbk6MaFhDG+LRJY0STm7mZp3DPOrmRqzbLCA1dJucGR2AL93+/KcoPpDJzrR /wl0kcgYixUeaHReOSbRydDgXqIP5K9S/3cgKSAzAjULKyB/mWIZuOwpIhPFMObpbu3yVj ktM2x7Ml5I1HVdAe5fmRY8k65zHhBHc8gFz4MI3Y/VaMkO2roba1Qmdyp+AISHSH4Rj7K5 duZCalR3FVL7UW9X3ncQNBe9r7J1oH9E61SV7D2+yytIPnme/RcL8N3s5ab/Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729423311; 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=05DwnL41fiauwhKS27C3MK7elmXORYGUBm8A0htMy3Q=; b=rjII3PT0GrrQA70dhrW5TZ5JQ1q0oaRrQvTT9GTmrZH1uBW5fTU+ckDhBRctVRQdR3w5bA QCPBb/XUpNrVrLVmXqo2ipITVhP0M1P7krFjg/m1Nz22nv/6KKBgp577xW3GeSZPiXBep7 9LjbHbI7BpvyyuK4V2g426arw8UbmHwGBZWsIJDK6j2RxGfHSRbZoZyhUo6ufsxERzt5uK s9WLiQPf6wsjYGVcUwadPxjfrZPCW2qHZ+QDQH9Qy2uS0y5i3i7Mn0IFo5ZBAcTyLW1ib7 x7g28YtE/bXa+84+FPDSlcJiLo+dEGJiargPcfJx6NzBlGGsvhiYSqPbwFllxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729423311; a=rsa-sha256; cv=none; b=TivtW+NegHBcq8Su5Cts4F7X4O70k6U4mCqLmYOFFUk+a0E+hL2dN22Li6marvGhNsWscw MX5nLm89Odgm6gmNE0KrTcfj7sdeVO5Xsuo0iIqgmXVRKCZl3EA2OnQZ/XJ+UPRIWg8RHN Ybfx30iWsc0JU3+m+3jgHEhpVctElbk5TymzOhJWYKnaZP8sfmLMHdKeJs9Jcjy5VF7KIa XRTzDD7VuOkg7MUkKo732HimgDLF4OeutEtTXUGKofERr1QWmTYEAt9pVzlygLY6hevQeq Sv5uIXwop0WCsX1TbAONI7h9Ccb82z4S+PF7B2F/fZHgTUEXYFlboDnTwRrAeA== 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 4XWbcb0VXjz10FB; Sun, 20 Oct 2024 11:21:51 +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 49KBLonH064350; Sun, 20 Oct 2024 11:21:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49KBLo30064347; Sun, 20 Oct 2024 11:21:50 GMT (envelope-from git) Date: Sun, 20 Oct 2024 11:21:50 GMT Message-Id: <202410201121.49KBLo30064347@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: e609dfa98fd3 - stable/14 - onyx: Remove unreachable if condition 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/stable/14 X-Git-Reftype: branch X-Git-Commit: e609dfa98fd349ed868f2d4d16bd1994fc53875f Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=e609dfa98fd349ed868f2d4d16bd1994fc53875f commit e609dfa98fd349ed868f2d4d16bd1994fc53875f Author: Christos Margiolis AuthorDate: 2024-10-18 08:41:55 +0000 Commit: Christos Margiolis CommitDate: 2024-10-20 11:21:06 +0000 onyx: Remove unreachable if condition Both conditions are the same, so the second one is unreachable. PR: 229550 Sponsored by: The FreeBSD Foundation MFC after: 2 days Reviewed by: andreast, markj Differential Revision: https://reviews.freebsd.org/D47167 (cherry picked from commit 6f96ef84b359137a51dc1e717887ca7d31ba7bad) --- sys/dev/sound/macio/onyx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/sound/macio/onyx.c b/sys/dev/sound/macio/onyx.c index 00c7b826f142..d13f3da92db6 100644 --- a/sys/dev/sound/macio/onyx.c +++ b/sys/dev/sound/macio/onyx.c @@ -197,7 +197,6 @@ onyx_probe(device_t dev) if (strcmp(name, "codec") == 0) { if (iicbus_get_addr(dev) != PCM3052_IICADDR) return (ENXIO); - } else if (strcmp(name, "codec") == 0) { compat = ofw_bus_get_compat(dev); if (compat == NULL || strcmp(compat, "pcm3052") != 0) return (ENXIO);