mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r198372, r198377:
Implement cam_ccbq_fini(). This is effectively NULL change, but makes this API a bit more consistent.
This commit is contained in:
parent
c6956547fc
commit
9afd1b3ab3
2 changed files with 9 additions and 2 deletions
|
|
@ -289,7 +289,7 @@ void
|
|||
cam_ccbq_free(struct cam_ccbq *ccbq)
|
||||
{
|
||||
if (ccbq) {
|
||||
camq_fini(&ccbq->queue);
|
||||
cam_ccbq_fini(ccbq);
|
||||
free(ccbq, M_CAMCCBQ);
|
||||
}
|
||||
}
|
||||
|
|
@ -338,6 +338,13 @@ cam_ccbq_init(struct cam_ccbq *ccbq, int openings)
|
|||
return (0);
|
||||
}
|
||||
|
||||
void
|
||||
cam_ccbq_fini(struct cam_ccbq *ccbq)
|
||||
{
|
||||
|
||||
camq_fini(&ccbq->queue);
|
||||
}
|
||||
|
||||
/*
|
||||
* Heap routines for manipulating CAM queues.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -4447,7 +4447,7 @@ xpt_release_device(struct cam_eb *bus, struct cam_et *target,
|
|||
devq = bus->sim->devq;
|
||||
cam_devq_resize(devq, devq->alloc_queue.array_size - 1);
|
||||
camq_fini(&device->drvq);
|
||||
camq_fini(&device->ccbq.queue);
|
||||
cam_ccbq_fini(&device->ccbq);
|
||||
free(device, M_CAMXPT);
|
||||
xpt_release_target(bus, target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue