aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r--drivers/s390/scsi/zfcp_aux.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index 6fed4a532ca3..bfe3ba73bc0f 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -1403,15 +1403,14 @@ zfcp_port_enqueue(struct zfcp_adapter *adapter, wwn_t wwpn, u32 status,
1403void 1403void
1404zfcp_port_dequeue(struct zfcp_port *port) 1404zfcp_port_dequeue(struct zfcp_port *port)
1405{ 1405{
1406 struct fc_port *rport;
1407
1408 zfcp_port_wait(port); 1406 zfcp_port_wait(port);
1409 write_lock_irq(&zfcp_data.config_lock); 1407 write_lock_irq(&zfcp_data.config_lock);
1410 list_del(&port->list); 1408 list_del(&port->list);
1411 port->adapter->ports--; 1409 port->adapter->ports--;
1412 write_unlock_irq(&zfcp_data.config_lock); 1410 write_unlock_irq(&zfcp_data.config_lock);
1413 if (port->rport) 1411 if (port->rport)
1414 fc_remote_port_delete(rport); 1412 fc_remote_port_delete(port->rport);
1413 port->rport = NULL;
1415 zfcp_adapter_put(port->adapter); 1414 zfcp_adapter_put(port->adapter);
1416 zfcp_sysfs_port_remove_files(&port->sysfs_device, 1415 zfcp_sysfs_port_remove_files(&port->sysfs_device,
1417 atomic_read(&port->status)); 1416 atomic_read(&port->status));