Remove some NULL checks after M_WAITOK allocations from sys/arm/.

MFC after:	1 month
This commit is contained in:
trasz 2016-08-09 16:02:35 +00:00
parent bd20a8c3ff
commit a0f6b98c95
3 changed files with 0 additions and 9 deletions

View File

@ -68,10 +68,6 @@ vcio_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int mode,
if (error != 0)
break;
property = malloc(size, M_VCIO, M_WAITOK);
if (property == NULL) {
error = ENOMEM;
break;
}
error = copyin(ptr, property, size);
if (error) {

View File

@ -322,8 +322,6 @@ pxa_smi_add_device(device_t dev, const char *name, int unit)
ivars = (struct smi_ivars *)malloc(
sizeof(struct smi_ivars), M_PXASMI, M_WAITOK);
if (ivars == NULL)
return;
child = device_add_child(dev, name, unit);
if (child == NULL) {

View File

@ -191,9 +191,6 @@ pxa_bus_tag_alloc(bus_addr_t offset)
tag = (struct bus_space *)malloc(sizeof(struct bus_space), M_PXATAG,
M_WAITOK);
if (tag == NULL) {
return (NULL);
}
bcopy(&_base_tag, tag, sizeof(struct bus_space));
tag->bs_privdata = (void *)offset;