From 3ec1a2147fbc8885b5920c24f061db26e795a8e9 Mon Sep 17 00:00:00 2001 From: Arne Redlich Date: Sun, 18 Nov 2012 21:43:15 +0100 Subject: [PATCH] scsi-lowlevel: remove scsi_write16_params Signed-off-by: Arne Redlich --- include/scsi-lowlevel.h | 5 ----- lib/scsi-lowlevel.c | 3 --- 2 files changed, 8 deletions(-) diff --git a/include/scsi-lowlevel.h b/include/scsi-lowlevel.h index 06695b9..bdf590b 100644 --- a/include/scsi-lowlevel.h +++ b/include/scsi-lowlevel.h @@ -176,10 +176,6 @@ struct scsi_readtoc_list { struct scsi_readtoc_desc desc[0]; }; -struct scsi_write16_params { - uint64_t lba; - uint32_t num_blocks; -}; struct scsi_startstopunit_params { int immed; int pcm; @@ -292,7 +288,6 @@ struct scsi_task { int expxferlen; unsigned char cdb[SCSI_CDB_MAX_SIZE]; union { - struct scsi_write16_params write16; struct scsi_startstopunit_params startstopunit; struct scsi_preventallow_params preventallow; struct scsi_orwrite_params orwrite; diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index 005beca..dbb1d24 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -1284,9 +1284,6 @@ scsi_cdb_write16(uint64_t lba, uint32_t xferlen, int blocksize, int wrprotect, i } task->expxferlen = xferlen; - task->params.write16.lba = lba; - task->params.write16.num_blocks = xferlen/blocksize; - return task; }