git: 60911eda7819 - stable/13 - cs4281: eliminate write only variable codecno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:29:47 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=60911eda7819f3cc69bb62f3ecce2acb73b362f8
commit 60911eda7819f3cc69bb62f3ecce2acb73b362f8
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:32 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:54 +0000
cs4281: eliminate write only variable codecno
Sponsored by: Netflix
(cherry picked from commit 0c64fe00681816ce593e58617a7b285683154dfb)
---
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 fe73e14edb29..6763f17f84f0 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);