Module Name: src
Committed By: mlelstv
Date: Tue Sep 30 15:24:15 UTC 2014
Modified Files:
src/external/bsd/iscsi/dist/src/lib: target.c
Log Message:
the buffer is also used when there is no input
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/iscsi/dist/src/lib/target.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/iscsi/dist/src/lib/target.c
diff -u src/external/bsd/iscsi/dist/src/lib/target.c:1.7 src/external/bsd/iscsi/dist/src/lib/target.c:1.8
--- src/external/bsd/iscsi/dist/src/lib/target.c:1.7 Wed Mar 3 00:44:51 2010
+++ src/external/bsd/iscsi/dist/src/lib/target.c Tue Sep 30 15:24:15 2014
@@ -321,9 +321,7 @@ scsi_command_t(target_session_t *sess, u
* there is input data and set the length of the input to
* either scsi_cmd.trans_len or scsi_cmd.bidi_trans_len,
* depending on whether scsi_cmd.output was set. */
- if (scsi_cmd.input) {
- scsi_cmd.send_data = sess->buff;
- }
+ scsi_cmd.send_data = sess->buff;
scsi_cmd.input = 0;
cmd.scsi_cmd = &scsi_cmd;
cmd.callback = NULL;