mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
altera: Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852
This commit is contained in:
parent
00ae9c1be0
commit
e06e2c8407
1 changed files with 0 additions and 5 deletions
|
|
@ -356,11 +356,6 @@ msgdma_desc_alloc(struct msgdma_softc *sc, struct msgdma_channel *chan,
|
|||
/* Descriptors. */
|
||||
chan->descs = malloc(nsegments * sizeof(struct msgdma_desc *),
|
||||
M_DEVBUF, (M_WAITOK | M_ZERO));
|
||||
if (chan->descs == NULL) {
|
||||
device_printf(sc->dev,
|
||||
"%s: Can't allocate memory.\n", __func__);
|
||||
return (-1);
|
||||
}
|
||||
chan->dma_map = malloc(nsegments * sizeof(bus_dmamap_t),
|
||||
M_DEVBUF, (M_WAITOK | M_ZERO));
|
||||
chan->descs_phys = malloc(nsegments * sizeof(bus_dma_segment_t),
|
||||
|
|
|
|||
Loading…
Reference in a new issue