Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern thmap(9): kmem_zalloc(KM_SLEEP) never fails. Prune...
details: https://anonhg.NetBSD.org/src/rev/65b1125f0797
branches: trunk
changeset: 374224:65b1125f0797
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 11 13:06:21 2023 +0000
description:
thmap(9): kmem_zalloc(KM_SLEEP) never fails. Prune dead branch.
diffstat:
sys/kern/subr_thmap.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 3145867a390f -r 65b1125f0797 sys/kern/subr_thmap.c
--- a/sys/kern/subr_thmap.c Tue Apr 11 13:01:41 2023 +0000
+++ b/sys/kern/subr_thmap.c Tue Apr 11 13:06:21 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_thmap.c,v 1.12 2022/04/09 23:51:57 riastradh Exp $ */
+/* $NetBSD: subr_thmap.c,v 1.13 2023/04/11 13:06:21 riastradh Exp $ */
/*-
* Copyright (c) 2018 Mindaugas Rasiukevicius <rmind at noxt eu>
@@ -112,7 +112,7 @@
#include "utils.h"
#endif
-THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.12 2022/04/09 23:51:57 riastradh Exp $");
+THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.13 2023/04/11 13:06:21 riastradh Exp $");
#include <crypto/blake2/blake2s.h>
@@ -980,9 +980,6 @@ thmap_create(uintptr_t baseptr, const th
return NULL;
}
thmap = kmem_zalloc(sizeof(thmap_t), KM_SLEEP);
- if (!thmap) {
- return NULL;
- }
thmap->baseptr = baseptr;
thmap->ops = ops ? ops : &thmap_default_ops;
thmap->flags = flags;
Home |
Main Index |
Thread Index |
Old Index