arswitch: Remove unused variable.

This commit is contained in:
John Baldwin 2022-04-12 14:58:59 -07:00
parent f602f7e6f7
commit 3ef2d49e7d

View File

@ -184,11 +184,8 @@ arswitch_readreg(device_t dev, int addr)
int
arswitch_writereg(device_t dev, int addr, int value)
{
struct arswitch_softc *sc;
uint16_t phy, reg;
sc = device_get_softc(dev);
arswitch_split_setpage(dev, addr, &phy, &reg);
return (arswitch_reg_write32(dev, 0x10 | phy, reg, value));
}