diff options
author | trasz <trasz@FreeBSD.org> | 2016-05-11 09:42:24 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-05-11 09:42:24 +0000 |
commit | 2a88184c42d305ccddddfab4c4ea206aef3b5e37 (patch) | |
tree | 4d076a7b583a9a32d9d11d69cbe31a162fdf739f /sys/mips | |
parent | fbdb745d9035c812ff84d171fe0814de17229b54 (diff) | |
download | FreeBSD-src-2a88184c42d305ccddddfab4c4ea206aef3b5e37.zip FreeBSD-src-2a88184c42d305ccddddfab4c4ea206aef3b5e37.tar.gz |
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
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/adm5120/obio.c | 4 | ||||
-rw-r--r-- | sys/mips/alchemy/obio.c | 4 | ||||
-rw-r--r-- | sys/mips/atheros/apb.c | 4 | ||||
-rw-r--r-- | sys/mips/idt/obio.c | 4 | ||||
-rw-r--r-- | sys/mips/rt305x/obio.c | 4 |
5 files changed, 0 insertions, 20 deletions
diff --git a/sys/mips/adm5120/obio.c b/sys/mips/adm5120/obio.c index 0e09886..90216c1 100644 --- a/sys/mips/adm5120/obio.c +++ b/sys/mips/adm5120/obio.c @@ -486,10 +486,6 @@ obio_add_child(device_t bus, u_int order, const char *name, int unit) 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); diff --git a/sys/mips/alchemy/obio.c b/sys/mips/alchemy/obio.c index b85ca48..740445f 100644 --- a/sys/mips/alchemy/obio.c +++ b/sys/mips/alchemy/obio.c @@ -478,10 +478,6 @@ obio_add_child(device_t bus, u_int order, const char *name, int unit) 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); diff --git a/sys/mips/atheros/apb.c b/sys/mips/atheros/apb.c index 6a38c7d..ef9b964 100644 --- a/sys/mips/atheros/apb.c +++ b/sys/mips/atheros/apb.c @@ -451,10 +451,6 @@ apb_add_child(device_t bus, u_int order, const char *name, int unit) 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); diff --git a/sys/mips/idt/obio.c b/sys/mips/idt/obio.c index f151a79..54abbb1 100644 --- a/sys/mips/idt/obio.c +++ b/sys/mips/idt/obio.c @@ -428,10 +428,6 @@ obio_add_child(device_t bus, u_int order, const char *name, int unit) 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); diff --git a/sys/mips/rt305x/obio.c b/sys/mips/rt305x/obio.c index fc8a4ac..79d7504 100644 --- a/sys/mips/rt305x/obio.c +++ b/sys/mips/rt305x/obio.c @@ -547,10 +547,6 @@ obio_add_child(device_t bus, u_int order, const char *name, int unit) 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); |