diff options
author | trasz <trasz@FreeBSD.org> | 2016-03-29 13:56:59 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-03-29 13:56:59 +0000 |
commit | ca92bb3067ab9958b69fda6b1f710ff0db5fea96 (patch) | |
tree | e39a5d4590b1ea3e68ff1a7bfa905eb2d62f10bf /sys/kern/kern_exec.c | |
parent | 68e9a48abbf297dc6891e141adfa1e5ba920d0a8 (diff) | |
download | FreeBSD-src-ca92bb3067ab9958b69fda6b1f710ff0db5fea96.zip FreeBSD-src-ca92bb3067ab9958b69fda6b1f710ff0db5fea96.tar.gz |
Remove some NULL checks for M_WAITOK allocations.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 69f0774..7c88fe0 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1570,8 +1570,6 @@ exec_register(execsw_arg) for (es = execsw; *es; es++) count++; newexecsw = malloc(count * sizeof(*es), M_TEMP, M_WAITOK); - if (newexecsw == NULL) - return (ENOMEM); xs = newexecsw; if (execsw) for (es = execsw; *es; es++) @@ -1604,8 +1602,6 @@ exec_unregister(execsw_arg) if (*es != execsw_arg) count++; newexecsw = malloc(count * sizeof(*es), M_TEMP, M_WAITOK); - if (newexecsw == NULL) - return (ENOMEM); xs = newexecsw; for (es = execsw; *es; es++) if (*es != execsw_arg) |