diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-07-07 14:43:01 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-07-14 14:40:08 -0400 |
commit | 5dcd1ee7c32dcd9187f95fabe5bd4770fa8e5072 (patch) | |
tree | 39062a4f589a1b9fc32f6ede96af9b2d4a8470cf /src/hw/virtio-scsi.c | |
parent | bb05a67220b8d37ac8fce216266bb1821939b3b1 (diff) | |
download | seabios-5dcd1ee7c32dcd9187f95fabe5bd4770fa8e5072.tar.gz |
blockcmd: Convert cdb_is_read() to scsi_is_read()
Convert the cdb_is_read() function to a new function scsi_is_read()
which takes a 'struct disk_op_s' as a paramter.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/virtio-scsi.c')
-rw-r--r-- | src/hw/virtio-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/virtio-scsi.c b/src/hw/virtio-scsi.c index 8cdcfd0f..80afd04c 100644 --- a/src/hw/virtio-scsi.c +++ b/src/hw/virtio-scsi.c @@ -55,7 +55,7 @@ virtio_scsi_process_op(struct disk_op_s *op) req.lun[3] = (vlun->lun & 0xff); u32 len = op->count * blocksize; - int datain = cdb_is_read((u8*)req.cdb, blocksize); + int datain = scsi_is_read(op); int in_num = (datain ? 2 : 1); int out_num = (len ? 3 : 2) - in_num; |