]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d8a657cd04ab0b5ab18d655b946445fa5f0a60f
treebd0422fcaa9eae27c7fc8fd82953d9738c157c52
parentfd3a08f69c2f174c9534dd8875b2d923d2adf13c
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