git: 3ef2d49e7d21 - main - arswitch: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:59:32 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3ef2d49e7d211c282e8d1d6767b64c3037fcdbaf commit 3ef2d49e7d211c282e8d1d6767b64c3037fcdbaf Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-12 21:58:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-12 21:58:59 +0000 arswitch: Remove unused variable. --- sys/dev/etherswitch/arswitch/arswitch_reg.c | 3 --- 1 file changed, 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)); }