scsi-lowlevel: remove scsi_write12_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_write12_params {
|
||||
uint32_t lba;
|
||||
uint32_t num_blocks;
|
||||
};
|
||||
struct scsi_write16_params {
|
||||
uint64_t lba;
|
||||
uint32_t num_blocks;
|
||||
@@ -296,7 +292,6 @@ struct scsi_task {
|
||||
int expxferlen;
|
||||
unsigned char cdb[SCSI_CDB_MAX_SIZE];
|
||||
union {
|
||||
struct scsi_write12_params write12;
|
||||
struct scsi_write16_params write16;
|
||||
struct scsi_startstopunit_params startstopunit;
|
||||
struct scsi_preventallow_params preventallow;
|
||||
|
||||
@@ -1240,9 +1240,6 @@ scsi_cdb_write12(uint32_t lba, uint32_t xferlen, int blocksize, int wrprotect, i
|
||||
}
|
||||
task->expxferlen = xferlen;
|
||||
|
||||
task->params.write12.lba = lba;
|
||||
task->params.write12.num_blocks = xferlen/blocksize;
|
||||
|
||||
return task;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user