mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
35bea5c84f
commit
aa090eabcb
12 changed files with 18 additions and 40 deletions
|
|
@ -1912,9 +1912,7 @@ static struct configfs_attribute *vhost_scsi_tpg_attrs[] = {
|
|||
};
|
||||
|
||||
static struct se_portal_group *
|
||||
vhost_scsi_make_tpg(struct se_wwn *wwn,
|
||||
struct config_group *group,
|
||||
const char *name)
|
||||
vhost_scsi_make_tpg(struct se_wwn *wwn, const char *name)
|
||||
{
|
||||
struct vhost_scsi_tport *tport = container_of(wwn,
|
||||
struct vhost_scsi_tport, tport_wwn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue