From owner-svn-src-all@freebsd.org Wed May 11 09:42:26 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63683B3432F; Wed, 11 May 2016 09:42:26 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 33E5A17F7; Wed, 11 May 2016 09:42:26 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4B9gPP2002302; Wed, 11 May 2016 09:42:25 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4B9gOQH002296; Wed, 11 May 2016 09:42:24 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201605110942.u4B9gOQH002296@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Wed, 11 May 2016 09:42:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299418 - in head/sys/mips: adm5120 alchemy atheros idt rt305x X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2016 09:42:26 -0000 Author: trasz Date: Wed May 11 09:42:24 2016 New Revision: 299418 URL: https://svnweb.freebsd.org/changeset/base/299418 Log: Remove NULL checks after M_WAITOK allocations from sys/mips/. Reviewed by: adrian@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6301 Modified: head/sys/mips/adm5120/obio.c head/sys/mips/alchemy/obio.c head/sys/mips/atheros/apb.c head/sys/mips/idt/obio.c head/sys/mips/rt305x/obio.c Modified: head/sys/mips/adm5120/obio.c ============================================================================== --- head/sys/mips/adm5120/obio.c Wed May 11 09:30:18 2016 (r299417) +++ head/sys/mips/adm5120/obio.c Wed May 11 09:42:24 2016 (r299418) @@ -486,10 +486,6 @@ obio_add_child(device_t bus, u_int order struct obio_ivar *ivar; ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO); - if (ivar == NULL) { - printf("Failed to allocate ivar\n"); - return (0); - } resource_list_init(&ivar->resources); child = device_add_child_ordered(bus, order, name, unit); Modified: head/sys/mips/alchemy/obio.c ============================================================================== --- head/sys/mips/alchemy/obio.c Wed May 11 09:30:18 2016 (r299417) +++ head/sys/mips/alchemy/obio.c Wed May 11 09:42:24 2016 (r299418) @@ -478,10 +478,6 @@ obio_add_child(device_t bus, u_int order struct obio_ivar *ivar; ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO); - if (ivar == NULL) { - printf("Failed to allocate ivar\n"); - return (0); - } resource_list_init(&ivar->resources); child = device_add_child_ordered(bus, order, name, unit); Modified: head/sys/mips/atheros/apb.c ============================================================================== --- head/sys/mips/atheros/apb.c Wed May 11 09:30:18 2016 (r299417) +++ head/sys/mips/atheros/apb.c Wed May 11 09:42:24 2016 (r299418) @@ -451,10 +451,6 @@ apb_add_child(device_t bus, u_int order, struct apb_ivar *ivar; ivar = malloc(sizeof(struct apb_ivar), M_DEVBUF, M_WAITOK | M_ZERO); - if (ivar == NULL) { - printf("Failed to allocate ivar\n"); - return (0); - } resource_list_init(&ivar->resources); child = device_add_child_ordered(bus, order, name, unit); Modified: head/sys/mips/idt/obio.c ============================================================================== --- head/sys/mips/idt/obio.c Wed May 11 09:30:18 2016 (r299417) +++ head/sys/mips/idt/obio.c Wed May 11 09:42:24 2016 (r299418) @@ -428,10 +428,6 @@ obio_add_child(device_t bus, u_int order struct obio_ivar *ivar; ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO); - if (ivar == NULL) { - printf("Failed to allocate ivar\n"); - return (0); - } resource_list_init(&ivar->resources); child = device_add_child_ordered(bus, order, name, unit); Modified: head/sys/mips/rt305x/obio.c ============================================================================== --- head/sys/mips/rt305x/obio.c Wed May 11 09:30:18 2016 (r299417) +++ head/sys/mips/rt305x/obio.c Wed May 11 09:42:24 2016 (r299418) @@ -547,10 +547,6 @@ obio_add_child(device_t bus, u_int order struct obio_ivar *ivar; ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO); - if (ivar == NULL) { - printf("Failed to allocate ivar\n"); - return (0); - } resource_list_init(&ivar->resources); child = device_add_child_ordered(bus, order, name, unit);