git: f444db950e87 - main - boottrace: Stop checking for failures from realloc(M_WAITOK)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Sep 2024 10:26:44 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=f444db950e877596805aed897c3fbb975be28711
commit f444db950e877596805aed897c3fbb975be28711
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:17 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-03 10:25:17 +0000
boottrace: Stop checking for failures from realloc(M_WAITOK)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45852
---
sys/kern/kern_boottrace.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sys/kern/kern_boottrace.c b/sys/kern/kern_boottrace.c
index 1b097e7378ad..5516f3160587 100644
--- a/sys/kern/kern_boottrace.c
+++ b/sys/kern/kern_boottrace.c
@@ -561,9 +561,6 @@ boottrace_resize(u_int newsize)
}
rt.table = realloc(rt.table, newsize * sizeof(struct bt_event),
M_BOOTTRACE, M_WAITOK | M_ZERO);
- if (rt.table == NULL)
- return (ENOMEM);
-
rt.size = newsize;
boottrace_reset("boottrace_resize");
return (0);