git: e2bce86f4878 - stable/13 - e6000sw_set_atustat: eliminate write only ret variable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:25 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=e2bce86f4878d238ca875791f39aac9e20c59a6e

commit e2bce86f4878d238ca875791f39aac9e20c59a6e
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:52 +0000

    e6000sw_set_atustat: eliminate write only ret variable
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 9a2e6ca6ef82128ed2b7b9c7e8e3a9a6c459fb45)
---
 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 d679c708341d..d3a82cb1c7e7 100644
--- a/sys/dev/etherswitch/e6000sw/e6000sw.c
+++ b/sys/dev/etherswitch/e6000sw/e6000sw.c
@@ -1535,9 +1535,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));
 }