git: c69cc8d10180 - main - riscv: retire bzero
Mateusz Guzik
mjg at FreeBSD.org
Mon Aug 23 18:38:15 UTC 2021
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=c69cc8d10180e667dc7701f700e4975e627514ef
commit c69cc8d10180e667dc7701f700e4975e627514ef
Author: Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-08-23 16:16:32 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-08-23 18:38:05 +0000
riscv: retire bzero
Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
routines.")
Reviewed by: mhorne
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/riscv/riscv/machdep.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c
index 841bfeda891e..b7fb142a59b4 100644
--- a/sys/riscv/riscv/machdep.c
+++ b/sys/riscv/riscv/machdep.c
@@ -979,14 +979,3 @@ initriscv(struct riscv_bootparams *rvbp)
TSEXIT();
}
-
-#undef bzero
-void
-bzero(void *buf, size_t len)
-{
- uint8_t *p;
-
- p = buf;
- while(len-- > 0)
- *p++ = 0;
-}
More information about the dev-commits-src-main
mailing list