scsi-lowlevel: remove scsi_preventallow_params
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
This commit is contained in:
@@ -176,9 +176,6 @@ struct scsi_readtoc_list {
|
|||||||
struct scsi_readtoc_desc desc[0];
|
struct scsi_readtoc_desc desc[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct scsi_preventallow_params {
|
|
||||||
int prevent;
|
|
||||||
};
|
|
||||||
struct scsi_orwrite_params {
|
struct scsi_orwrite_params {
|
||||||
uint64_t lba;
|
uint64_t lba;
|
||||||
uint32_t num_blocks;
|
uint32_t num_blocks;
|
||||||
@@ -280,7 +277,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_preventallow_params preventallow;
|
|
||||||
struct scsi_orwrite_params orwrite;
|
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;
|
||||||
|
|||||||
@@ -1894,8 +1894,6 @@ scsi_cdb_preventallow(int prevent)
|
|||||||
task->xfer_dir = SCSI_XFER_NONE;
|
task->xfer_dir = SCSI_XFER_NONE;
|
||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
task->params.preventallow.prevent = prevent;
|
|
||||||
|
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user