diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-04-12 21:58:59 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-12 21:58:59 +0000 |
| commit | 3ef2d49e7d211c282e8d1d6767b64c3037fcdbaf (patch) | |
| tree | 58a79f78f8461f777c31a06ee2cbdb9351ef73f3 /sys/dev/etherswitch | |
| parent | f602f7e6f708842ed410778fde8b2ffeed6d07e5 (diff) | |
Diffstat (limited to 'sys/dev/etherswitch')
| -rw-r--r-- | sys/dev/etherswitch/arswitch/arswitch_reg.c | 3 |
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, ®); return (arswitch_reg_write32(dev, 0x10 | phy, reg, value)); } |
