mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 13:44:55 +00:00
fwip(4): 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
d1a89bd9b6
commit
4d47c7ca7b
|
@ -304,13 +304,9 @@ fwip_init(void *arg)
|
|||
xferq->psize = MCLBYTES;
|
||||
xferq->queued = 0;
|
||||
xferq->buf = NULL;
|
||||
xferq->bulkxfer = (struct fw_bulkxfer *) malloc(
|
||||
xferq->bulkxfer = malloc(
|
||||
sizeof(struct fw_bulkxfer) * xferq->bnchunk,
|
||||
M_FWIP, M_WAITOK);
|
||||
if (xferq->bulkxfer == NULL) {
|
||||
printf("if_fwip: malloc failed\n");
|
||||
return;
|
||||
}
|
||||
STAILQ_INIT(&xferq->stvalid);
|
||||
STAILQ_INIT(&xferq->stfree);
|
||||
STAILQ_INIT(&xferq->stdma);
|
||||
|
|
Loading…
Reference in a new issue