From e11462039af61e0305552e416529ac6e1cb407bc Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 5 Jan 2019 22:18:14 +0000 Subject: [PATCH] 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 --- scst/src/scst_lib.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 6c45eb287..51d5e1a74 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -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;