scsi-lowlevel: remove scsi_read10_params
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
This commit is contained in:
@@ -176,10 +176,6 @@ struct scsi_readtoc_list {
|
||||
struct scsi_readtoc_desc desc[0];
|
||||
};
|
||||
|
||||
struct scsi_read10_params {
|
||||
uint32_t lba;
|
||||
uint32_t num_blocks;
|
||||
};
|
||||
struct scsi_read12_params {
|
||||
uint32_t lba;
|
||||
uint32_t num_blocks;
|
||||
@@ -312,7 +308,6 @@ struct scsi_task {
|
||||
int expxferlen;
|
||||
unsigned char cdb[SCSI_CDB_MAX_SIZE];
|
||||
union {
|
||||
struct scsi_read10_params read10;
|
||||
struct scsi_read12_params read12;
|
||||
struct scsi_read16_params read16;
|
||||
struct scsi_write10_params write10;
|
||||
|
||||
@@ -1067,9 +1067,6 @@ scsi_cdb_read10(uint32_t lba, uint32_t xferlen, int blocksize, int rdprotect, in
|
||||
}
|
||||
task->expxferlen = xferlen;
|
||||
|
||||
task->params.read10.lba = lba;
|
||||
task->params.read10.num_blocks = xferlen/blocksize;
|
||||
|
||||
return task;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user