aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/etherswitch
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-12 21:58:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-12 21:58:59 +0000
commit3ef2d49e7d211c282e8d1d6767b64c3037fcdbaf (patch)
tree58a79f78f8461f777c31a06ee2cbdb9351ef73f3 /sys/dev/etherswitch
parentf602f7e6f708842ed410778fde8b2ffeed6d07e5 (diff)
Diffstat (limited to 'sys/dev/etherswitch')
-rw-r--r--sys/dev/etherswitch/arswitch/arswitch_reg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/etherswitch/arswitch/arswitch_reg.c b/sys/dev/etherswitch/arswitch/arswitch_reg.c
index c9f16f21fff1..cc29fa08522f 100644
--- a/sys/dev/etherswitch/arswitch/arswitch_reg.c
+++ b/sys/dev/etherswitch/arswitch/arswitch_reg.c
@@ -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));
}