scsi: target: Use config_item_name() instead of open-coding it
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 22 Jun 2018 21:52:48 +0000 (14:52 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 2 Jul 2018 20:44:30 +0000 (16:44 -0400)
commit6f3bf5a2fa4a53c8dbb5b7b3d3d93bf85acaa2eb
tree86fed0feb7181969aa63a96db47433724c4a39f3
parent265d59aacbce7e50bdc1f5d25033c38dd70b3767
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>
drivers/target/target_core_configfs.c
drivers/target/target_core_sbc.c