diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2011-04-15 15:08:20 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2011-04-15 15:08:20 +0000 |
commit | 7f1e51af0cab7f3c5eadb636a2beae227cd5e0f5 (patch) | |
tree | 309019cc0544d54e85dc67fedce491df30e6250f /sys/arch/i386 | |
parent | b4beef39345d1dbe85f71c6935ff2742c4b8a5b8 (diff) |
Do not check malloc return value against NULL, as M_WAITOK is used.
ok pirofti@ guenther@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/sys_machdep.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/sys_machdep.c b/sys/arch/i386/i386/sys_machdep.c index f220dbafdff..cfc7827c347 100644 --- a/sys/arch/i386/i386/sys_machdep.c +++ b/sys/arch/i386/i386/sys_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_machdep.c,v 1.28 2011/03/12 03:52:26 guenther Exp $ */ +/* $OpenBSD: sys_machdep.c,v 1.29 2011/04/15 15:08:19 chl Exp $ */ /* $NetBSD: sys_machdep.c,v 1.28 1996/05/03 19:42:29 christos Exp $ */ /*- @@ -115,8 +115,6 @@ i386_get_ldt(struct proc *p, void *args, register_t *retval) return (EINVAL); cp = malloc(ua.num * sizeof(union descriptor), M_TEMP, M_WAITOK); - if (cp == NULL) - return ENOMEM; simple_lock(&pmap->pm_lock); |