From nobody Tue Apr 5 04:32:37 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 D74B01A915E3; Tue, 5 Apr 2022 04:32:37 +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 4KXZW93Bv3z4gN2; Tue, 5 Apr 2022 04:32:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133157; 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=I5aeT3usYG0kW0JyzzubhhtCKi7FzDbT4w1B5DGYWa8=; b=UudIVjxm0irbDhqw14/76Xg7kDLydhoNXBt9dsi7VpoMWNmuORYyL48a7cOF/qH8aV8542 oVzanJpcc5OBzWj03kWNEJdgl86h4gEZS3vN1er0K5HrO41cSfztYECrDDsaJiVh0cjiT8 iOTSj2Hl1oP7fgSru1EwVmN0lsz0AkK/QaviWp1cX9afhyPfx8Mga45Z3EC1kp8Jula8vU 4ZIHiJBia1D4EpYxoqgXGFFtW0ZiTmfQW8Ph29kLPq/94jRk0ulhJpUYM4sLxdWe0KnEGA 1oZhKLFr9z0P6tYdXDjsHkGknO4grvpENs3y0L+K013SOyfmVBBjXc6GSrcWuQ== 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 4A8051FA7B; Tue, 5 Apr 2022 04:32:37 +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 2354WbEd009237; Tue, 5 Apr 2022 04:32:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354Wbet009236; Tue, 5 Apr 2022 04:32:37 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:37 GMT Message-Id: <202204050432.2354Wbet009236@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0c64fe006818 - main - cs4281: eliminate write only variable codecno 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0c64fe00681816ce593e58617a7b285683154dfb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133157; 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=I5aeT3usYG0kW0JyzzubhhtCKi7FzDbT4w1B5DGYWa8=; b=eUozG9aGh79NZgNzDcMwIDx+QGyn17Mu3sltEboez/YaUz/LC1qKUxXzChTZoHPxTTWKGx nWvZVbIX1MpRL3/5VFAiL7l3K9HCMuotUWPvDLBZwvCJxoLzZWvWdTrae1E28lE/qUcGme rkSLCKUP5kv2H3U6Kx6rN6iBShPkeQB+X6vHowaQxbOBIWDrPMsXMRJwRQF2n+VQCjytbW hUtydA9NqrN0L5IxQpcpXtnliHuSJ9j2avj7gc9FbQe4vaSAnwyddgi0QVoCoCEvuRM8kQ wZzcukKTI8RAhPxWp3LISSlq4Z6bTSceSEoBN6bZaiVZuP85wrAIoo3y0TrPPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133157; a=rsa-sha256; cv=none; b=wP83a97Mhdh5K80zOKoyWIeuQWjrN6EkpD3IVhkbTWo/PqGd+zga/iVRnOe2gSlfYvFFcX JtU6h/fGRZAhGyYA5BeSd+g1/e31oM4CDp2d4RBZLuuiQz2fYHwaKppjMWchBAz8F2Zbc+ ysRgD0D/6FIeFRCJhqXNTD4o/LqE8BIzP/2rhZziufSBsyqcj2yecfi6o3BS5u3p9Rvciy cJUsvAMOohKiXCXH+FyZ9RNebioECdOItiB50QHc1ZwAjTJZ8ZqYN+EXiwknC1p3HVD+Z1 dbIUakXhWVFw8amPD5kmdg5+RtULCTylKuhoMZPivc7ekanYJ/bTbBrht2JFCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0c64fe00681816ce593e58617a7b285683154dfb commit 0c64fe00681816ce593e58617a7b285683154dfb Author: Warner Losh AuthorDate: 2022-04-05 02:16:20 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:30:04 +0000 cs4281: eliminate write only variable codecno Sponsored by: Netflix --- sys/dev/sound/pci/cs4281.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/sound/pci/cs4281.c b/sys/dev/sound/pci/cs4281.c index b955a6284800..5b52cf4d997b 100644 --- a/sys/dev/sound/pci/cs4281.c +++ b/sys/dev/sound/pci/cs4281.c @@ -257,9 +257,7 @@ static int cs4281_rdcd(kobj_t obj, void *devinfo, int regno) { struct sc_info *sc = (struct sc_info *)devinfo; - int codecno; - codecno = regno >> 8; regno &= 0xff; /* Remove old state */ @@ -291,9 +289,7 @@ static int cs4281_wrcd(kobj_t obj, void *devinfo, int regno, u_int32_t data) { struct sc_info *sc = (struct sc_info *)devinfo; - int codecno; - codecno = regno >> 8; regno &= 0xff; cs4281_wr(sc, CS4281PCI_ACCAD, regno);