mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove some NULL checks after M_WAITOK allocations from sys/arm/.
MFC after: 1 month
This commit is contained in:
parent
1d01cb0d72
commit
7ee3fef85a
3 changed files with 0 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue