diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-06-22 14:52:48 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-02 16:44:30 -0400 |
commit | 6f3bf5a2fa4a53c8dbb5b7b3d3d93bf85acaa2eb (patch) | |
tree | 86fed0feb7181969aa63a96db47433724c4a39f3 /drivers/target/target_core_configfs.c | |
parent | 265d59aacbce7e50bdc1f5d25033c38dd70b3767 (diff) | |
download | linux-6f3bf5a2fa4a53c8dbb5b7b3d3d93bf85acaa2eb.tar.gz linux-6f3bf5a2fa4a53c8dbb5b7b3d3d93bf85acaa2eb.tar.bz2 linux-6f3bf5a2fa4a53c8dbb5b7b3d3d93bf85acaa2eb.zip |
scsi: target: Use config_item_name() instead of open-coding it
Some target code uses config_item_name() while other code accesses .ci_name
directly. Make the target code consistent by switching to
config_item_name().
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Mike Christie <mchristi@redhat.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/target_core_configfs.c')
-rw-r--r-- | drivers/target/target_core_configfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 5ccef7d597fa..93d3ff34b614 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c @@ -263,8 +263,8 @@ static struct config_group *target_core_register_fabric( &tf->tf_discovery_cit); configfs_add_default_group(&tf->tf_disc_group, &tf->tf_group); - pr_debug("Target_Core_ConfigFS: REGISTER -> Allocated Fabric:" - " %s\n", tf->tf_group.cg_item.ci_name); + pr_debug("Target_Core_ConfigFS: REGISTER -> Allocated Fabric: %s\n", + config_item_name(&tf->tf_group.cg_item)); return &tf->tf_group; } |