diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-06-22 17:53:02 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-02 16:44:32 -0400 |
commit | aa090eabcb341b0c023e802884235c29598df1e5 (patch) | |
tree | 490c65ce453696f56ae65a0b574c29ce542dd5ba /drivers/xen | |
parent | 35bea5c84fd13c643cce63f0b5cd4b148f8c901d (diff) |
scsi: target: Remove second argument from fabric_make_tpg()
Since most target drivers do not use the second fabric_make_tpg() argument
("group") and since it is trivial to derive the group pointer from the wwn
pointer, do not pass the group pointer to fabric_make_tpg().
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xen-scsiback.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c index 764dd9aa0131..fd77ccfc7d6e 100644 --- a/drivers/xen/xen-scsiback.c +++ b/drivers/xen/xen-scsiback.c | |||
@@ -1732,9 +1732,7 @@ static void scsiback_port_unlink(struct se_portal_group *se_tpg, | |||
1732 | } | 1732 | } |
1733 | 1733 | ||
1734 | static struct se_portal_group * | 1734 | static struct se_portal_group * |
1735 | scsiback_make_tpg(struct se_wwn *wwn, | 1735 | scsiback_make_tpg(struct se_wwn *wwn, const char *name) |
1736 | struct config_group *group, | ||
1737 | const char *name) | ||
1738 | { | 1736 | { |
1739 | struct scsiback_tport *tport = container_of(wwn, | 1737 | struct scsiback_tport *tport = container_of(wwn, |
1740 | struct scsiback_tport, tport_wwn); | 1738 | struct scsiback_tport, tport_wwn); |