scsi: target/iscsi: Simplify iscsit_dump_data_payload()
authorBart Van Assche <bvanassche@acm.org>
Fri, 25 Jan 2019 18:34:57 +0000 (10:34 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Feb 2019 02:36:54 +0000 (21:36 -0500)
commit658c31224de24ec0e00987b7d0c93128f455331f
tree18f1b02181c5c56f71c182989eefb1f49a0e708f
parent32e36bfbcf31452a854263e7c7f32fbefc4b44d8
scsi: target/iscsi: Simplify iscsit_dump_data_payload()

Use a single loop to dump immediate data, padding and digest instead of
using separate rx_data() calls for each type of data.

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