From owner-svn-src-head@FreeBSD.ORG Fri Jun 19 20:35:18 2015 Return-Path: Delivered-To: svn-src-head@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B73B3FFF; Fri, 19 Jun 2015 20:35:18 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A578D25E; Fri, 19 Jun 2015 20:35:18 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5JKZIRx043079; Fri, 19 Jun 2015 20:35:18 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5JKZImO043078; Fri, 19 Jun 2015 20:35:18 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201506192035.t5JKZImO043078@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Fri, 19 Jun 2015 20:35:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284606 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2015 20:35:18 -0000 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) {