svn commit: r299418 - in head/sys/mips: adm5120 alchemy atheros idt rt305x
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed May 11 09:42:26 UTC 2016
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);
More information about the svn-src-all
mailing list