summaryrefslogtreecommitdiff
path: root/drivers/scsi/esp_scsi.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-10-13 10:26:28 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-10-16 06:00:39 +0300
commit86117d7f9569820795c8f6b9a1c9b911cb5037c7 (patch)
tree350a38e72a681be34bc16dba275b97c17bb1fe10 /drivers/scsi/esp_scsi.h
parent3f9295b65ea44194252d60376036a3618d822152 (diff)
downloadlinux-86117d7f9569820795c8f6b9a1c9b911cb5037c7.tar.xz
scsi: esp_scsi: remove union in esp_cmd_priv
The dma_addr_t member is unused ever since we switched the SCSI layer to send down single-segement command using a scatterlist as well many years ago. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/esp_scsi.h')
-rw-r--r--drivers/scsi/esp_scsi.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/esp_scsi.h b/drivers/scsi/esp_scsi.h
index 4ce2b8dc148b..3b1b501e76f9 100644
--- a/drivers/scsi/esp_scsi.h
+++ b/drivers/scsi/esp_scsi.h
@@ -249,11 +249,7 @@
#define SYNC_DEFP_FAST 0x19 /* 10mb/s */
struct esp_cmd_priv {
- union {
- dma_addr_t dma_addr;
- int num_sg;
- } u;
-
+ int num_sg;
int cur_residue;
struct scatterlist *cur_sg;
int tot_residue;