cciss: reformat error handling
Reformat some error handling code to reduce line lengths a bit. Signed-off-by: Stephen M. Cameron <steve.cameron@hp.com> Signed-off-by: Mike Miller <mike.miller@hp.com> Cc: James Bottomley <James.Bottomley@steeleye.com> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
09f0892ec7
commit
d38ae168bf
@@ -2349,7 +2349,9 @@ static inline void complete_command(ctlr_info_t *h, CommandList_struct *cmd,
|
|||||||
if (timeout)
|
if (timeout)
|
||||||
status = 0;
|
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) {
|
switch (cmd->err_info->CommandStatus) {
|
||||||
unsigned char sense_key;
|
unsigned char sense_key;
|
||||||
case CMD_TARGET_STATUS:
|
case CMD_TARGET_STATUS:
|
||||||
@@ -2437,7 +2439,9 @@ static inline void complete_command(ctlr_info_t *h, CommandList_struct *cmd,
|
|||||||
cmd->err_info->CommandStatus);
|
cmd->err_info->CommandStatus);
|
||||||
status = 0;
|
status = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
after_error_processing:
|
||||||
|
|
||||||
/* We need to return this command */
|
/* We need to return this command */
|
||||||
if (retry_cmd) {
|
if (retry_cmd) {
|
||||||
resend_cciss_cmd(h, cmd);
|
resend_cciss_cmd(h, cmd);
|
||||||
|
Reference in New Issue
Block a user