summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Van Assche2017-08-25 22:46:38 +0200
committerMartin K. Petersen2017-08-25 23:08:08 +0200
commitbcba3c22b5e1240f78d26dbcbbe2c87594f0ae0d (patch)
tree08ff696744a908095d462d76f5812bb6444f4bcb
parentscsi: libiscsi: Fix indentation (diff)
downloadkernel-qcow2-linux-bcba3c22b5e1240f78d26dbcbbe2c87594f0ae0d.tar.gz
kernel-qcow2-linux-bcba3c22b5e1240f78d26dbcbbe2c87594f0ae0d.tar.xz
kernel-qcow2-linux-bcba3c22b5e1240f78d26dbcbbe2c87594f0ae0d.zip
scsi: libsas: Remove a set-but-not-used variable
This was detected by building with W=1. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Cc: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/libsas/sas_scsi_host.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c
index 87e5079d816b..fc90b8c65860 100644
--- a/drivers/scsi/libsas/sas_scsi_host.c
+++ b/drivers/scsi/libsas/sas_scsi_host.c
@@ -855,7 +855,6 @@ int sas_target_alloc(struct scsi_target *starget)
int sas_slave_configure(struct scsi_device *scsi_dev)
{
struct domain_device *dev = sdev_to_domain_dev(scsi_dev);
- struct sas_ha_struct *sas_ha;
BUG_ON(dev->rphy->identify.device_type != SAS_END_DEVICE);
@@ -864,8 +863,6 @@ int sas_slave_configure(struct scsi_device *scsi_dev)
return 0;
}
- sas_ha = dev->port->ha;
-
sas_read_port_mode_page(scsi_dev);
if (scsi_dev->tagged_supported) {