From f12b1b8b47bfad0a9d151b1e47c23074c141e8fe Mon Sep 17 00:00:00 2001 From: Wei Hu Date: Fri, 20 Aug 2021 15:00:02 +0000 Subject: [PATCH] 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 e6cffb852d7..ffeee336f69 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) {