Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 04:32:37 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0c64fe006818 - main - cs4281: eliminate write only variable codecno
Message-ID:  <202204050432.2354Wbet009236@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c64fe00681816ce593e58617a7b285683154dfb

commit 0c64fe00681816ce593e58617a7b285683154dfb
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:16:20 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204050432.2354Wbet009236>