Commit d38ae168 authored by Mike Miller (OS Dev)'s avatar Mike Miller (OS Dev) Committed by Linus Torvalds
Browse files

cciss: reformat error handling



Reformat some error handling code to reduce line lengths a bit.

Signed-off-by: default avatarStephen M. Cameron <steve.cameron@hp.com>
Signed-off-by: default avatarMike Miller <mike.miller@hp.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 09f0892e
Loading
Loading
Loading
Loading
+89 −85
Original line number Diff line number Diff line
@@ -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);