scsi: target/core: Make the XCOPY setup code easier to read by inlining two functions
authorBart Van Assche <bvanassche@acm.org>
Tue, 2 Apr 2019 19:58:10 +0000 (12:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 13 Apr 2019 00:20:06 +0000 (20:20 -0400)
commitbe71530aa9742afb02714ae7eab4d3c5ad107590
treebd0422fcaa9eae27c7fc8fd82953d9738c157c52
parent0f57cf5ce7661c9803064d8d1b4e7f3814e84649
scsi: target/core: Make the XCOPY setup code easier to read by inlining two functions

The target_xcopy_setup_pt_port() and target_xcopy_init_pt_lun() functions
obfuscate what is really going on. Hence inline these two functions. This
patch does not change any functionality.

Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_xcopy.c