git: f12b1b8b47bf - main - Remove unused function mana_reset_counters.

Wei Hu whu at FreeBSD.org
Fri Aug 20 16:09:34 UTC 2021


The branch main has been updated by whu:

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

commit f12b1b8b47bfad0a9d151b1e47c23074c141e8fe
Author:     Wei Hu <whu at FreeBSD.org>
AuthorDate: 2021-08-20 15:00:02 +0000
Commit:     Wei Hu <whu at FreeBSD.org>
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)
 {


More information about the dev-commits-src-all mailing list