virtio-scsi: clean up virtio_scsi_parse_cdb
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Sep 2014 16:10:37 +0000 (18:10 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Sep 2014 13:40:51 +0000 (15:40 +0200)
commit9df7bfddcc25a22b99be5fe9b14ce367fa43b106
treecfa4402c20b4fcb44c875622cd644864115efa41
parent7ce0425575745a40e94e75426607e0bec17899fa
virtio-scsi: clean up virtio_scsi_parse_cdb

The command direction according to the guest-passed buffers
is already stored in the VirtIOSCSIReq.  We can use it instead
of computing it again from req->elem.

Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/virtio-scsi.c