mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
SCSI: Minor cleanups.
This commit is contained in:
parent
53728117bc
commit
c16f375b92
@ -465,6 +465,7 @@ scsi_release_dma_buffer(scsi_ccb *request)
|
||||
release_sem(device->dma_buffer_owner);
|
||||
|
||||
request->buffered = false;
|
||||
request->dma_buffer = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -156,7 +156,7 @@ cleanup_tmp_sg(scsi_ccb *ccb)
|
||||
ccb, ccb->data, ccb->data_length);
|
||||
|
||||
res = unlock_memory(ccb->data, ccb->data_length, B_DMA_IO
|
||||
| ((ccb->flags & SCSI_DIR_MASK) == SCSI_DIR_IN ? B_READ_DEVICE : 0));
|
||||
| ((ccb->flags & SCSI_DIR_MASK) == SCSI_DIR_IN ? B_READ_DEVICE : 0));
|
||||
|
||||
if (res != B_OK) {
|
||||
SHOW_FLOW0(3, "Cannot unlock previously locked memory!");
|
||||
|
Loading…
Reference in New Issue
Block a user