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>
This commit is contained in:

committed by
Martin K. Petersen

parent
35bea5c84f
commit
aa090eabcb
@@ -223,10 +223,7 @@ static int ft_init_nodeacl(struct se_node_acl *nacl, const char *name)
|
||||
/*
|
||||
* local_port port_group (tpg) ops.
|
||||
*/
|
||||
static struct se_portal_group *ft_add_tpg(
|
||||
struct se_wwn *wwn,
|
||||
struct config_group *group,
|
||||
const char *name)
|
||||
static struct se_portal_group *ft_add_tpg(struct se_wwn *wwn, const char *name)
|
||||
{
|
||||
struct ft_lport_wwn *ft_wwn;
|
||||
struct ft_tpg *tpg;
|
||||
|
Reference in New Issue
Block a user