mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user