OSDN Git Service

scsi: core: fix two wrong indentation cases
authorJianchao Wang <jianchao.w.wang@oracle.com>
Mon, 26 Feb 2018 07:59:16 +0000 (15:59 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 28 Feb 2018 03:26:12 +0000 (22:26 -0500)
No functional changes. Just fix two wrong indentation cases in
scsi_finish_command and scsi_decide_disposition.

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi.c
drivers/scsi/scsi_error.c

index a7e4fba..4c60c26 100644 (file)
@@ -231,7 +231,7 @@ void scsi_finish_command(struct scsi_cmnd *cmd)
                                "(result %x)\n", cmd->result));
 
        good_bytes = scsi_bufflen(cmd);
-        if (!blk_rq_is_passthrough(cmd->request)) {
+       if (!blk_rq_is_passthrough(cmd->request)) {
                int old_good_bytes = good_bytes;
                drv = scsi_cmd_to_driver(cmd);
                if (drv->done)
index 96f988a..ac3b1c3 100644 (file)
@@ -1894,7 +1894,7 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd)
        }
        return FAILED;
 
-      maybe_retry:
+maybe_retry:
 
        /* we requeue for retry because the error was retryable, and
         * the request was not marked fast fail.  Note that above,