From nobody Wed Apr 06 23:46:00 2022 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 9E8371A829CB; Wed, 6 Apr 2022 23:46:01 +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 4KYh3Y1JtJz4QvH; Wed, 6 Apr 2022 23:46:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288761; 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=GVXU5drmhHeErJkF7LmjR+UTEXber5UjJIxuWaWjseo=; b=MobohHEgWSHG109yFOT3xKsUUkd6ds2SxlTNsY9dGVNQE+4u9VEQfg6izVMGBaBQgo3bib ChPWslTbADjKOvGKOZFCWeXuqRjL/p4gujdEvUIe0tuaR4I6NtpPp6z9fVkAjkUT6PGPds bDHCQ6MsjvFR4yjUS0DbIxqeUSPuePnTonovX0eT018pCRxmJuJMj67y0R/Jt9rPxAw2BB XVcEzsuqdcTNWa6DhOpKtfZiTcXUjJpDHwf6glbFK3LqWIF3GvivMCHmIx+8/M9FiIGdSM NwBstmUyWWf2zv9DMCQSQqJw0EhyabB7OcyqMtiGyoITqsGAWwIiO9+nz3enGQ== 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 B85AD24DF2; Wed, 6 Apr 2022 23:46:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 236Nk0UG008667; Wed, 6 Apr 2022 23:46:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236Nk0Jk008666; Wed, 6 Apr 2022 23:46:00 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:00 GMT Message-Id: <202204062346.236Nk0Jk008666@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 4afc92cd6e98 - main - ac97_initmixer: Remove write-only variables. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4afc92cd6e9828aa9005f8424df6e003ac747e2f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288761; 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=GVXU5drmhHeErJkF7LmjR+UTEXber5UjJIxuWaWjseo=; b=r6zwIkD71FZZQPW3YjjRDkzbZhwPmAH4XMnA8fHHY7iL0G1P+pyf9UyvDIo3AdXGFY+fMR ZlLQ/FjO93f9/Qq9sKgCkCvp1H6ijNeq7Osm1HH+sJRjWixJQI+mbxxowOAkavjrnxW+BX ZaZ/tgWNqHgVBB49OKvvx6ojt5h1Gey8boWw9fnpCYijl9GxOQajc3vXBOdqKv+jXH93Fz Eu3Op3V5fwCb2Qgy4NHQ9xxjgGhOeZhPGZQ6tjhuAQuAOOSVHhW5NL29WC7STUHRAtnQcz jcFs+11WpyCggg8TDt0aMoAi0o51aCxOY3+Xwots4YKRuGQ3/woEZsiEwI6x1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288761; a=rsa-sha256; cv=none; b=KO4kpq2M4BMp/piQjT4AuGiHHgw4TGi1M6uNPyES4vcI5L0kiZ0pC84eZQqf5nttO4DHeX ewCCxXO+r0td3qumk65TkASZS5ig5iTZ0psk7Zk4ZOp9sq/Q7m2drIgoYHD0b7Y54t2okr h00tZ3D3ircu9fZ8VydqvRWyiaMZIlPf2JMpVto0V3QiaKo4J8B3z3zWi2t8YwaQ2Cz18V JR9Rf9rd771Rkm1Z5u+cGNUnlMgNKrf+LrG1+HQ+594ebvyMHr3S1g70rV3HjoDeTvCaCu NtkFNWL+KllTOzGgugVtDazba53GVdPOrc/QCqII/5xSdqZwq7ZFUjU8XoLPVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4afc92cd6e9828aa9005f8424df6e003ac747e2f commit 4afc92cd6e9828aa9005f8424df6e003ac747e2f Author: John Baldwin AuthorDate: 2022-04-06 23:45:27 +0000 Commit: John Baldwin CommitDate: 2022-04-06 23:45:27 +0000 ac97_initmixer: Remove write-only variables. --- sys/dev/sound/pcm/ac97.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/sound/pcm/ac97.c b/sys/dev/sound/pcm/ac97.c index 3dc614083660..7dfdc91c598f 100644 --- a/sys/dev/sound/pcm/ac97.c +++ b/sys/dev/sound/pcm/ac97.c @@ -603,7 +603,6 @@ ac97_initmixer(struct ac97_info *codec) const char *cname, *vname; char desc[80]; device_t pdev; - u_int8_t model, step; unsigned i, j, k, bit, old; u_int32_t id; int reg; @@ -655,15 +654,12 @@ ac97_initmixer(struct ac97_info *codec) codec_patch = NULL; cname = NULL; - model = step = 0; for (i = 0; ac97codecid[i].id; i++) { u_int32_t modelmask = 0xffffffff ^ ac97codecid[i].stepmask; if ((ac97codecid[i].id & modelmask) == (id & modelmask)) { codec->noext = ac97codecid[i].noext; codec_patch = ac97codecid[i].patch; cname = ac97codecid[i].name; - model = (id & modelmask) & 0xff; - step = (id & ~modelmask) & 0xff; break; } }