scsi-disk: use scsi_data_cdb_length
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Sep 2012 16:00:57 +0000 (18:00 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Sep 2012 14:17:49 +0000 (16:17 +0200)
commite93176d55f1eb4be1a366b51afeaf4f4c8c31d75
tree6a834c308cf7417acdc1e74965509faf8def4244
parentbb729f758195a36db1dd0d5c01ec983e466729eb
scsi-disk: use scsi_data_cdb_length

This simplifies and unifies the parsing of READ, WRITE and WRITE SAME
commands.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c