From patchwork Tue Dec 17 11:53:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 11297411 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 459BE13B6 for ; Tue, 17 Dec 2019 11:53:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2CC1F2146E for ; Tue, 17 Dec 2019 11:53:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726730AbfLQLxc convert rfc822-to-8bit (ORCPT ); Tue, 17 Dec 2019 06:53:32 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:2107 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726141AbfLQLxc (ORCPT ); Tue, 17 Dec 2019 06:53:32 -0500 Received: from DGGEML402-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 5AAA6FC76425F2D8B827; Tue, 17 Dec 2019 19:53:28 +0800 (CST) Received: from DGGEML505-MBX.china.huawei.com ([169.254.12.46]) by DGGEML402-HUB.china.huawei.com ([fe80::fca6:7568:4ee3:c776%31]) with mapi id 14.03.0439.000; Tue, 17 Dec 2019 19:53:22 +0800 From: "wubo (T)" To: "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Mingfangsen Subject: [PATCH] scsi:remove unreachable code on scsi_decide_disposition func Thread-Topic: [PATCH] scsi:remove unreachable code on scsi_decide_disposition func Thread-Index: AdW0zylDYYuhZep7QPWk1qrXegsGRA== Date: Tue, 17 Dec 2019 11:53:21 +0000 Message-ID: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.173.221.252] MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Wu Bo Remove unreachable code on scsi_decide_disposition func. Signed-off-by: Wu Bo --- drivers/scsi/scsi_error.c | 1 - 1 file changed, 1 deletion(-) -- 1.8.3.1 diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index ae2fa17..c5e05c4 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -1934,7 +1934,6 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd) default: return FAILED; } - return FAILED; maybe_retry: