cs4281: eliminate write only variable codecno

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-04 20:16:20 -06:00
parent 635a4068d2
commit 0c64fe0068

View File

@ -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);