git: 9a2e6ca6ef82 - main - e6000sw_set_atustat: eliminate write only ret variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:12 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=9a2e6ca6ef82128ed2b7b9c7e8e3a9a6c459fb45
commit 9a2e6ca6ef82128ed2b7b9c7e8e3a9a6c459fb45
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 00:03:18 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:29:26 +0000
e6000sw_set_atustat: eliminate write only ret variable
Sponsored by: Netflix
---
sys/dev/etherswitch/e6000sw/e6000sw.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c
index 68caf61f9358..a9949b896501 100644
--- a/sys/dev/etherswitch/e6000sw/e6000sw.c
+++ b/sys/dev/etherswitch/e6000sw/e6000sw.c
@@ -1529,9 +1529,8 @@ e6000sw_setup(device_t dev, e6000sw_softc_t *sc)
static void
e6000sw_set_atustat(device_t dev, e6000sw_softc_t *sc, int bin, int flag)
{
- uint16_t ret;
- ret = e6000sw_readreg(sc, REG_GLOBAL2, ATU_STATS);
+ e6000sw_readreg(sc, REG_GLOBAL2, ATU_STATS);
e6000sw_writereg(sc, REG_GLOBAL2, ATU_STATS, (bin << ATU_STATS_BIN ) |
(flag << ATU_STATS_FLAG));
}