From nobody Fri Oct 18 08:45:12 2024 X-Original-To: dev-commits-src-main@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 4XVJDm3D1lz5YwqF; Fri, 18 Oct 2024 08:45:12 +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 4XVJDm0vCQz4mmM; Fri, 18 Oct 2024 08:45:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729241112; 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=g02SrkNohrfp/Vbux1npPj7bdY09vs00u1rnhWTn+48=; b=CoSWzIq94rQz+7pX4GZu0u3E5BcrAzIqO/NFLLeNAotpdEDwtpxVrgyO7uB9Ir7vki60lc EuN00vma8D5Pgfn/XGwu4PQoAW5k09zJSy2xvetIfGOVz3hVuk77Iza1J1xUhSAJpDsb9c TQCSfD4WtDpkMZTcuHyGwSQImTtxKWFWIRPUJT11QUZqYbMaM/LIR8cFOXQNJNrTiUTyEE irZzIdSgsaFRpg+jHjIU7bRBhZEfQ7FaRNMS+IBraxQ7tuK7QzFI2+LijnsSABBJjpAWME YG8iCPgsRMe5HWUPzG+rqNom7dzLMeBDmvsXUMBtgVQFdunVYsWK3gvChIBsHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729241112; 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=g02SrkNohrfp/Vbux1npPj7bdY09vs00u1rnhWTn+48=; b=uInUWMXykE2adOokI+T/g1Llm5cagehTClMF+5WdP4LjTUzkexePExnsVieHwpuJS5p/rC 8OlBDmDs4er8ctqzRAXYe8kw1/kQhMAYtEfSPgwYlLYgq1UsUFIM1F3D4eZMohW6Bl6OqU fktBW5rldvs4UVuZY3u5BpzbrnwwL9LfSDYuXu9m5b0vtOXcGfkMqTbfehY94FLF0RjxKT x6o5xMrg0mTBm6pUQFGW0JyTxHrQ5aUUIVe7ur/IP7r36fqP/otUjRavOPAU7TS2q3QKSU ixiHaX+GYqu6ZAsj79ly/GdXi7F0PQmiuUtsUrb3HmOlT78pNoWu+jmaZ9XeCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729241112; a=rsa-sha256; cv=none; b=xoC0E9Oz6pZQDHDU2rPbLf6I0uKvSNMm8+vzgm6dcpnyDL0mYkILNfflyOeVMyOJ+TgYmE JhNDcVvLA+qJrtKGM7M4hCbBMnZfg/x48d2njx4Sn8Auu4x9ECemalqXKYbdCIB40xcxRd icjwolE/u5Phgw72u2/oB0X/RzgnWNhpbWUimBAO68U2JOeK4n0wG9CxBRgSJ8p4q+tSsO eoPMgGQ+AyxXWNVmqbY4NWA6oEVsxyRsF8edagj4lnEV+5ub+wNND49MFZD9pr4esjxVMr 7McJrsrzE0EktEbuoa/iutcqKlFk8juWHx5mscXYERsLY4uhhssnzwfA4MfsPg== 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 4XVJDm0W0rzR3R; Fri, 18 Oct 2024 08:45:12 +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 49I8jC9H088638; Fri, 18 Oct 2024 08:45:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49I8jCfi088635; Fri, 18 Oct 2024 08:45:12 GMT (envelope-from git) Date: Fri, 18 Oct 2024 08:45:12 GMT Message-Id: <202410180845.49I8jCfi088635@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: 6f96ef84b359 - main - onyx: Remove unreachable if condition List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 6f96ef84b359137a51dc1e717887ca7d31ba7bad Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=6f96ef84b359137a51dc1e717887ca7d31ba7bad commit 6f96ef84b359137a51dc1e717887ca7d31ba7bad Author: Christos Margiolis AuthorDate: 2024-10-18 08:41:55 +0000 Commit: Christos Margiolis CommitDate: 2024-10-18 08:41:55 +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 --- 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);