mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
tests: Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852
This commit is contained in:
parent
66c35a6675
commit
aac6c41d4b
1 changed files with 0 additions and 8 deletions
|
|
@ -192,10 +192,6 @@ kerntest_execute(SYSCTL_HANDLER_ARGS)
|
|||
}
|
||||
/* Grab some memory */
|
||||
kte = malloc(sizeof(struct kern_test_entry), M_KTFRWK, M_WAITOK);
|
||||
if (kte == NULL) {
|
||||
error = ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
KTFRWK_LOCK();
|
||||
TAILQ_FOREACH(li, &kfrwk.kfrwk_testlist, next) {
|
||||
if (strcmp(li->name, kt.name) == 0) {
|
||||
|
|
@ -244,10 +240,6 @@ kern_testframework_register(const char *name, kerntfunc func)
|
|||
return (E2BIG);
|
||||
}
|
||||
te = malloc(sizeof(struct kern_test_list), M_KTFRWK, M_WAITOK);
|
||||
if (te == NULL) {
|
||||
error = ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
KTFRWK_LOCK();
|
||||
/* First does it already exist? */
|
||||
TAILQ_FOREACH(li, &kfrwk.kfrwk_testlist, next) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue