Date: Wed, 11 May 2016 09:42:24 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> 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 Message-ID: <201605110942.u4B9gOQH002296@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605110942.u4B9gOQH002296>