Commit bcba3c22 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: libsas: Remove a set-but-not-used variable

This was detected by building with W=1.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4dec6a8f
...@@ -855,7 +855,6 @@ int sas_target_alloc(struct scsi_target *starget) ...@@ -855,7 +855,6 @@ int sas_target_alloc(struct scsi_target *starget)
int sas_slave_configure(struct scsi_device *scsi_dev) int sas_slave_configure(struct scsi_device *scsi_dev)
{ {
struct domain_device *dev = sdev_to_domain_dev(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); BUG_ON(dev->rphy->identify.device_type != SAS_END_DEVICE);
...@@ -864,8 +863,6 @@ int sas_slave_configure(struct scsi_device *scsi_dev) ...@@ -864,8 +863,6 @@ int sas_slave_configure(struct scsi_device *scsi_dev)
return 0; return 0;
} }
sas_ha = dev->port->ha;
sas_read_port_mode_page(scsi_dev); sas_read_port_mode_page(scsi_dev);
if (scsi_dev->tagged_supported) { if (scsi_dev->tagged_supported) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment