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/atheros | |
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/atheros')
-rw-r--r-- | sys/mips/atheros/apb.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); |