scst_lib: Remove two comment blocks and a trace statement

Remove the comment blocks from scst_block_generic_dev_done()
and scst_tape_generic_dev_done() since that comment does
not apply to these functions. Remove the trace statement from
scst_block_generic_dev_done() since it prints values that
are not modified by this function.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7864 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-01-05 22:18:14 +00:00
parent 1c6a617d51
commit e11462039a

View File

@@ -12336,12 +12336,6 @@ int scst_block_generic_dev_done(struct scst_cmd *cmd,
TRACE_ENTRY();
/*
* SCST sets good defaults for cmd->is_send_status and
* cmd->resp_data_len based on cmd->status and cmd->data_direction,
* therefore change them only if necessary
*/
/*
* Potentially, a pass-through backend device can at any time change
* block size behind us, e.g. after FORMAT command, so we need to
@@ -12374,9 +12368,6 @@ int scst_block_generic_dev_done(struct scst_cmd *cmd,
}
}
TRACE_DBG("cmd->is_send_status=%x, cmd->resp_data_len=%d, "
"res=%d", cmd->is_send_status, cmd->resp_data_len, res);
out:
TRACE_EXIT_RES(res);
return res;
@@ -12398,12 +12389,6 @@ int scst_tape_generic_dev_done(struct scst_cmd *cmd,
TRACE_ENTRY();
/*
* SCST sets good defaults for cmd->is_send_status and
* cmd->resp_data_len based on cmd->status and cmd->data_direction,
* therefore change them only if necessary
*/
if (unlikely(!scst_cmd_completed_good(cmd)))
goto out;