Skip to content

Commit 8ba00a4

Browse files
Vasu DevJames Bottomley
authored andcommitted
[SCSI] fcoe: removes unused shost in fcoe_shost_config
Signed-off-by: Vasu Dev <vasu.dev@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent d9e9ab5 commit 8ba00a4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎drivers/scsi/fcoe/fcoe.c‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -655,15 +655,13 @@ static int fcoe_netdev_config(struct fc_lport *lport, struct net_device *netdev)
655655
/**
656656
* fcoe_shost_config() - Set up the SCSI host associated with a local port
657657
* @lport: The local port
658-
* @shost: The SCSI host to associate with the local port
659658
* @dev: The device associated with the SCSI host
660659
*
661660
* Must be called after fcoe_lport_config() and fcoe_netdev_config()
662661
*
663662
* Returns: 0 for success
664663
*/
665-
static int fcoe_shost_config(struct fc_lport *lport, struct Scsi_Host *shost,
666-
struct device *dev)
664+
static int fcoe_shost_config(struct fc_lport *lport, struct device *dev)
667665
{
668666
int rc = 0;
669667

@@ -899,7 +897,6 @@ static struct fc_lport *fcoe_if_create(struct fcoe_interface *fcoe,
899897
struct net_device *netdev = fcoe->netdev;
900898
struct fc_lport *lport = NULL;
901899
struct fcoe_port *port;
902-
struct Scsi_Host *shost;
903900
int rc;
904901
/*
905902
* parent is only a vport if npiv is 1,
@@ -921,7 +918,6 @@ static struct fc_lport *fcoe_if_create(struct fcoe_interface *fcoe,
921918
rc = -ENOMEM;
922919
goto out;
923920
}
924-
shost = lport->host;
925921
port = lport_priv(lport);
926922
port->lport = lport;
927923
port->fcoe = fcoe;
@@ -951,7 +947,7 @@ static struct fc_lport *fcoe_if_create(struct fcoe_interface *fcoe,
951947
}
952948

953949
/* configure lport scsi host properties */
954-
rc = fcoe_shost_config(lport, shost, parent);
950+
rc = fcoe_shost_config(lport, parent);
955951
if (rc) {
956952
FCOE_NETDEV_DBG(netdev, "Could not configure shost for the "
957953
"interface\n");

0 commit comments

Comments
 (0)