Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1968458ybi; Thu, 4 Jul 2019 02:59:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8qd8dTJgA30l1HpdW5MnPOu4R3TGOEYcXkNodqPz6Pbu7CMqzfOpBAPgvirXS0SAT6jqE X-Received: by 2002:a17:90a:7d09:: with SMTP id g9mr18347608pjl.38.1562234355278; Thu, 04 Jul 2019 02:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562234355; cv=none; d=google.com; s=arc-20160816; b=AfpFFh66KLqLUxeJiL0CvOud2tBoUZ77aOGQ+F72f7LueYWEprTiYix5bq+akbUO0A YNPK/t80sOfl1R0dRXNAgcNX9HWGNxdpAumfDh1NBdrUOHVMIex1ylOwRDJWgTZYr0+o NU61yu+iaKcQlsiEpwmJfpcvfsHAVp1AXJBLyJjoOvRmdhHVdV6OZJ+7fviUrlRo68wD K93Uh/J7HIJX9QIgW+6V0gRMwpW4uNC+hA0OJDbd9CKwEs+Z4xPp6Sc5CbwBbkhQzwJV i7oXYp0YsvpG4W36TX3RFqadfN5GYNfRM6zeISmp4DahF5Qy6L8lzwURvOfSlmcGryzu YNXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=edbW+RqOGJMKVzybInjEjy05hDtAtaY6xELYfbqyo0w=; b=lOscVlC+77rAkLOnvAlekxxKgcOE+aACxlf6tnvaLXHDq/wjh9zNgVdW6z5HQZr0Qg NiEPBn56n6sQStFW8g+RFwMxCpzJI0LEjZBT+jUbT4mN3TlmIg1kcIto+laH75Au6EJk pdrkINLztgN8wJBGO2Y4NnSS/sxTasAvcShRMy7uSwNdwJRGGiGlTESi+0rLltkaBrHf kTUNRmzVUtnaUJldE2lbsmzIu/uhVnk86XMPIwxrmvrbIZWNJ4xSuTRemKITcvdskH5V L2f3b6faEfsH0LCPSUBHsKYmCCkeg2Kx43UQo4LiI9K/vgW3E7F306014fcoNF2gQQEW 1MSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 135si4808110pgb.357.2019.07.04.02.58.59; Thu, 04 Jul 2019 02:59:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727487AbfGDJ5N (ORCPT + 99 others); Thu, 4 Jul 2019 05:57:13 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:20621 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbfGDJ5M (ORCPT ); Thu, 4 Jul 2019 05:57:12 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.7]) by rmmx-syy-dmz-app11-12011 (RichMail) with SMTP id 2eeb5d1dcd67ee3-c95f7; Thu, 04 Jul 2019 17:56:56 +0800 (CST) X-RM-TRANSID: 2eeb5d1dcd67ee3-c95f7 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee45d1dcd67f95-a5dd7; Thu, 04 Jul 2019 17:56:55 +0800 (CST) X-RM-TRANSID: 2ee45d1dcd67f95-a5dd7 From: Ding Xiang To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: Remove unreachable code Date: Thu, 4 Jul 2019 17:55:56 +0800 Message-Id: <1562234156-11945-1-git-send-email-dingxiang@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The return code after switch default is unreachable, so remove it. Signed-off-by: Ding Xiang --- drivers/scsi/scsi_error.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index bfa569f..12180f0 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -1909,7 +1909,6 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd) default: return FAILED; } - return FAILED; maybe_retry: -- 1.9.1