提交 d38ae168 编写于 作者: M Mike Miller (OS Dev) 提交者: Linus Torvalds

cciss: reformat error handling

Reformat some error handling code to reduce line lengths a bit.
Signed-off-by: NStephen M. Cameron <steve.cameron@hp.com>
Signed-off-by: NMike Miller <mike.miller@hp.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 09f0892e
......@@ -2349,7 +2349,9 @@ static inline void complete_command(ctlr_info_t *h, CommandList_struct *cmd,
if (timeout)
status = 0;
if (cmd->err_info->CommandStatus != 0) { /* an error has occurred */
if (cmd->err_info->CommandStatus == 0) /* no error has occurred */
goto after_error_processing;
switch (cmd->err_info->CommandStatus) {
unsigned char sense_key;
case CMD_TARGET_STATUS:
......@@ -2437,7 +2439,9 @@ static inline void complete_command(ctlr_info_t *h, CommandList_struct *cmd,
cmd->err_info->CommandStatus);
status = 0;
}
}
after_error_processing:
/* We need to return this command */
if (retry_cmd) {
resend_cciss_cmd(h, cmd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册