diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2024-09-03 10:25:28 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2024-09-03 10:25:28 +0000 |
| commit | 4d47c7ca7baa1ae76cc1fc72ec85b475f1efd41d (patch) | |
| tree | 6572c6503f8394e40be36beb8a93a3edd63892e5 /sys/dev/firewire | |
| parent | d1a89bd9b6eb1524902b619fa092c7d6de63e623 (diff) | |
Diffstat (limited to 'sys/dev/firewire')
| -rw-r--r-- | sys/dev/firewire/if_fwip.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/firewire/if_fwip.c b/sys/dev/firewire/if_fwip.c index 6350ec9cb56e..41143e2e59d4 100644 --- a/sys/dev/firewire/if_fwip.c +++ b/sys/dev/firewire/if_fwip.c @@ -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); |
