mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
scsi: do not call send_command directly
Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
a1f0cce2ac
commit
fc4f0754c7
8 changed files with 14 additions and 9 deletions
|
@ -984,7 +984,6 @@ static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
|
|||
uint8_t *outbuf;
|
||||
int rc;
|
||||
|
||||
scsi_req_enqueue(req);
|
||||
command = buf[0];
|
||||
outbuf = (uint8_t *)r->iov.iov_base;
|
||||
is_write = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue