summaryrefslogtreecommitdiff
path: root/sys/kern/kern_lkm.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:54:35 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:54:35 +0000
commit60de2c41ea2b387be2e4b7b9b565329dd0a61c36 (patch)
tree8652597c096bbc850f6862988cd18624122c0051 /sys/kern/kern_lkm.c
parent87f10021e726a2d2d79e079d9fe15180e3023b3e (diff)
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/kern/kern_lkm.c')
-rw-r--r--sys/kern/kern_lkm.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c
index dfe83208002..27f71b21d9b 100644
--- a/sys/kern/kern_lkm.c
+++ b/sys/kern/kern_lkm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lkm.c,v 1.29 2001/05/05 20:57:00 art Exp $ */
+/* $OpenBSD: kern_lkm.c,v 1.30 2001/05/16 12:52:58 ho Exp $ */
/* $NetBSD: kern_lkm.c,v 1.31 1996/03/31 21:40:27 christos Exp $ */
/*
@@ -155,13 +155,10 @@ lkmalloc()
struct lkm_table *ret = NULL;
MALLOC(ret, struct lkm_table *, sizeof(*ret), M_DEVBUF, M_WAITOK);
- if (ret != NULL) {
- ret->refcnt =
- ret->depcnt = 0;
- ret->id = nlkms++;
- ret->sym_id = -1;
- TAILQ_INSERT_TAIL(&lkmods, ret, list);
- }
+ ret->refcnt = ret->depcnt = 0;
+ ret->id = nlkms++;
+ ret->sym_id = -1;
+ TAILQ_INSERT_TAIL(&lkmods, ret, list);
return ret;
}