Date: Sun, 2 Oct 2022 04:29:47 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 60911eda7819 - stable/13 - cs4281: eliminate write only variable codecno Message-ID: <202210020429.2924TlPn058647@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210020429.2924TlPn058647>