The branch main has been updated by whu:

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

commit f12b1b8b47bfad0a9d151b1e47c23074c141e8fe
Author:     Wei Hu <[email protected]>
AuthorDate: 2021-08-20 15:00:02 +0000
Commit:     Wei Hu <[email protected]>
CommitDate: 2021-08-20 16:05:40 +0000

    Remove unused function mana_reset_counters.
    
    This fixes the build warning caused by this function.
    Reported by:    markj
    Tested by:      whu
    MFC after:      2 weeks
    Sponsored by:   Microsoft
---
 sys/dev/mana/mana_en.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/sys/dev/mana/mana_en.c b/sys/dev/mana/mana_en.c
index e6cffb852d70..ffeee336f694 100644
--- a/sys/dev/mana/mana_en.c
+++ b/sys/dev/mana/mana_en.c
@@ -279,15 +279,6 @@ mana_free_counters(counter_u64_t *begin, int size)
                counter_u64_free(*begin);
 }
 
-static inline void
-mana_reset_counters(counter_u64_t *begin, int size)
-{
-       counter_u64_t *end = (counter_u64_t *)((char *)begin + size);
-
-       for (; begin < end; ++begin)
-               counter_u64_zero(*begin);
-}
-
 static bool
 mana_can_tx(struct gdma_queue *wq)
 {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to