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/target/loopback | |
| 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/target/loopback')
| -rw-r--r-- | drivers/target/loopback/tcm_loop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 60d5b918c4ac..4c8a97711291 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
| @@ -983,10 +983,8 @@ static struct configfs_attribute *tcm_loop_tpg_attrs[] = { | |||
| 983 | 983 | ||
| 984 | /* Start items for tcm_loop_naa_cit */ | 984 | /* Start items for tcm_loop_naa_cit */ |
| 985 | 985 | ||
| 986 | static struct se_portal_group *tcm_loop_make_naa_tpg( | 986 | static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, |
| 987 | struct se_wwn *wwn, | 987 | const char *name) |
| 988 | struct config_group *group, | ||
| 989 | const char *name) | ||
| 990 | { | 988 | { |
| 991 | struct tcm_loop_hba *tl_hba = container_of(wwn, | 989 | struct tcm_loop_hba *tl_hba = container_of(wwn, |
| 992 | struct tcm_loop_hba, tl_hba_wwn); | 990 | struct tcm_loop_hba, tl_hba_wwn); |
