summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_linker.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-06-20 20:11:00 +0000
committerjhb <jhb@FreeBSD.org>2006-06-20 20:11:00 +0000
commit41188bcabec5989b5df3b8e9aa9b8451d12d237b (patch)
treed7250f81809bba9dc3be38783cd25cec3491cde1 /sys/kern/kern_linker.c
parent70000c1c818ed71a87aaa5f34bab398f37f999fa (diff)
downloadFreeBSD-src-41188bcabec5989b5df3b8e9aa9b8451d12d237b.zip
FreeBSD-src-41188bcabec5989b5df3b8e9aa9b8451d12d237b.tar.gz
Don't check if malloc(M_WAITOK) returns NULL.
Diffstat (limited to 'sys/kern/kern_linker.c')
-rw-r--r--sys/kern/kern_linker.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index 1af5688..fd824c9 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -654,10 +654,6 @@ linker_file_lookup_symbol(linker_file_t file, const char *name, int deps)
cp = malloc(sizeof(struct common_symbol)
+ common_size + strlen(name) + 1, M_LINKER,
M_WAITOK | M_ZERO);
- if (cp == NULL) {
- KLD_DPF(SYM, ("linker_file_lookup_symbol: nomem\n"));
- return (0);
- }
cp->address = (caddr_t)(cp + 1);
cp->name = cp->address + common_size;
strcpy(cp->name, name);
OpenPOWER on IntegriCloud