git: fa1d1e824b9d - stable/14 - khelp: uma_zcreate() does not fail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 May 2024 13:26:44 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=fa1d1e824b9da32c6ad6d3ad3a36597f576e1cc3
commit fa1d1e824b9da32c6ad6d3ad3a36597f576e1cc3
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-04-23 16:22:27 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-05-02 13:25:08 +0000
khelp: uma_zcreate() does not fail
No functional change intended.
MFC after: 1 week
(cherry picked from commit 1e607a0753ff93847926a46003fe74087426b580)
---
sys/kern/kern_khelp.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/kern/kern_khelp.c b/sys/kern/kern_khelp.c
index f8a6f3e749da..eadb2b5a8db9 100644
--- a/sys/kern/kern_khelp.c
+++ b/sys/kern/kern_khelp.c
@@ -331,10 +331,6 @@ khelp_modevent(module_t mod, int event_type, void *data)
kmd->helper->h_zone = uma_zcreate(kmd->name,
kmd->uma_zsize, kmd->umactor, kmd->umadtor, NULL,
NULL, 0, 0);
- if (kmd->helper->h_zone == NULL) {
- error = ENOMEM;
- break;
- }
}
strlcpy(kmd->helper->h_name, kmd->name, HELPER_NAME_MAXLEN);
kmd->helper->h_hooks = kmd->hooks;