svn commit: r284606 - head/sys/kern
Sean Bruno
sbruno at FreeBSD.org
Fri Jun 19 20:35:18 UTC 2015
Author: sbruno
Date: Fri Jun 19 20:35:17 2015
New Revision: 284606
URL: https://svnweb.freebsd.org/changeset/base/284606
Log:
Remove uneeded NULL check since malloc the malloc is now M_WAITOK
Submitted by: mjg
Modified:
head/sys/kern/imgact_binmisc.c
Modified: head/sys/kern/imgact_binmisc.c
==============================================================================
--- head/sys/kern/imgact_binmisc.c Fri Jun 19 19:57:39 2015 (r284605)
+++ head/sys/kern/imgact_binmisc.c Fri Jun 19 20:35:17 2015 (r284606)
@@ -407,10 +407,6 @@ imgact_binmisc_get_all_entries(struct sy
sx_slock(&interp_list_sx);
count = interp_list_entry_count;
xbe = malloc(sizeof(*xbe) * count, M_BINMISC, M_WAITOK|M_ZERO);
- if (!xbe) {
- sx_sunlock(&interp_list_sx);
- return (ENOMEM);
- }
xbep = xbe;
SLIST_FOREACH(ibe, &interpreter_list, link) {
More information about the svn-src-all
mailing list