Date: Fri, 20 Aug 2021 16:09:33 GMT From: Wei Hu <whu@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f12b1b8b47bf - main - Remove unused function mana_reset_counters. Message-ID: <202108201609.17KG9XqS035977@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by whu: URL: https://cgit.FreeBSD.org/src/commit/?id=f12b1b8b47bfad0a9d151b1e47c23074c141e8fe commit f12b1b8b47bfad0a9d151b1e47c23074c141e8fe Author: Wei Hu <whu@FreeBSD.org> AuthorDate: 2021-08-20 15:00:02 +0000 Commit: Wei Hu <whu@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108201609.17KG9XqS035977>