Date: Tue, 12 Apr 2022 21:59:32 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 3ef2d49e7d21 - main - arswitch: Remove unused variable. Message-ID: <202204122159.23CLxWaH035650@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204122159.23CLxWaH035650>