scsi: core: Clean up scsi_noretry_cmd()
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 10 Sep 2020 07:48:41 +0000 (16:48 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Sep 2020 00:28:05 +0000 (20:28 -0400)
No need for else after return.

Link: https://lore.kernel.org/r/20200910074843.217661-2-damien.lemoal@wdc.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_error.c

index 927b1e6..5f3726a 100644 (file)
@@ -1755,8 +1755,8 @@ check_type:
        if (scmd->request->cmd_flags & REQ_FAILFAST_DEV ||
            blk_rq_is_passthrough(scmd->request))
                return 1;
-       else
-               return 0;
+
+       return 0;
 }
 
 /**