scsi-lowlevel: remove scsi_orwrite_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_readtoc_desc desc[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct scsi_orwrite_params {
|
|
||||||
uint64_t lba;
|
|
||||||
uint32_t num_blocks;
|
|
||||||
};
|
|
||||||
struct scsi_compareandwrite_params {
|
struct scsi_compareandwrite_params {
|
||||||
uint64_t lba;
|
uint64_t lba;
|
||||||
uint32_t num_blocks;
|
uint32_t num_blocks;
|
||||||
@@ -277,7 +273,6 @@ struct scsi_task {
|
|||||||
int expxferlen;
|
int expxferlen;
|
||||||
unsigned char cdb[SCSI_CDB_MAX_SIZE];
|
unsigned char cdb[SCSI_CDB_MAX_SIZE];
|
||||||
union {
|
union {
|
||||||
struct scsi_orwrite_params orwrite;
|
|
||||||
struct scsi_compareandwrite_params compareandwrite;
|
struct scsi_compareandwrite_params compareandwrite;
|
||||||
struct scsi_writeverify10_params writeverify10;
|
struct scsi_writeverify10_params writeverify10;
|
||||||
struct scsi_writeverify12_params writeverify12;
|
struct scsi_writeverify12_params writeverify12;
|
||||||
|
|||||||
@@ -1328,9 +1328,6 @@ scsi_cdb_orwrite(uint64_t lba, uint32_t xferlen, int blocksize, int wrprotect, i
|
|||||||
}
|
}
|
||||||
task->expxferlen = xferlen;
|
task->expxferlen = xferlen;
|
||||||
|
|
||||||
task->params.orwrite.lba = lba;
|
|
||||||
task->params.orwrite.num_blocks = xferlen/blocksize;
|
|
||||||
|
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user