Message ID | 5570D7A9.7050505@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 150F7C0020 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 4 Jun 2015 22:56:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27DBA2071E for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 4 Jun 2015 22:56:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C25972071B for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 4 Jun 2015 22:56:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753772AbbFDW4r (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Thu, 4 Jun 2015 18:56:47 -0400 Received: from mail-bl2on0074.outbound.protection.outlook.com ([65.55.169.74]:64288 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753546AbbFDW4r (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Thu, 4 Jun 2015 18:56:47 -0400 Received: from CY1PR0201CA0006.namprd02.prod.outlook.com (25.163.30.144) by DM2PR0201MB1037.namprd02.prod.outlook.com (25.160.219.147) with Microsoft SMTP Server (TLS) id 15.1.172.22; Thu, 4 Jun 2015 22:56:45 +0000 Received: from BN1AFFO11FD010.protection.gbl (2a01:111:f400:7c10::179) by CY1PR0201CA0006.outlook.office365.com (2a01:111:e400:58b9::16) with Microsoft SMTP Server (TLS) id 15.1.184.17 via Frontend Transport; Thu, 4 Jun 2015 22:56:44 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.173) smtp.mailfrom=sandisk.com; odin.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.173 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.173; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.173) by BN1AFFO11FD010.mail.protection.outlook.com (10.58.52.70) with Microsoft SMTP Server id 15.1.184.11 via Frontend Transport; Thu, 4 Jun 2015 22:56:42 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep12.sandisk.com (Symantec Messaging Gateway) with SMTP id D6.41.06265.AA7D0755; Thu, 4 Jun 2015 15:56:42 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.224.2; Thu, 4 Jun 2015 15:56:42 -0700 X-AuditID: ac160a69-f790f6d000001879-ec-5570d7aa9ea6 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by milsmgip12.sandisk.com (Symantec Messaging Gateway) with SMTP id 02.75.04661.9A7D0755; Thu, 4 Jun 2015 15:56:42 -0700 (PDT) Message-ID: <5570D7A9.7050505@sandisk.com> Date: Thu, 4 Jun 2015 15:56:41 -0700 From: Bart Van Assche <bart.vanassche@sandisk.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: James Bottomley <jbottomley@odin.com> CC: Himanshu Madhani <himanshu.madhani@qlogic.com>, Quinn Tran <quinn.tran@qlogic.com>, Saurav Kashyap <saurav.kashyap@qlogic.com>, "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org> Subject: [PATCH 08/10] qla2xxx: Remove unreachable code References: <5570D656.9050704@sandisk.com> In-Reply-To: <5570D656.9050704@sandisk.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-T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oMTJmU/ABooIaEpcWTqXqYuRi4NZ 4CijxKTlDawgCWEBc4nHC1aygvQKAU2fcFAZJMwpoC3x+9N5ZhCbWUBd4s+8S1C2vMT2t3OY JzDyz0KyYhaSsllIyhYwMq9iFMvNzCnOTc8sMDTSK07MS8ksztZLzs/dxAgOT86oHYzXJ5of YmTi4JRqYNSK2R17UXu3KBt7fKjEvqXFaT0rso4/6pDYarFW577LF8ZAwXN+DGE+M4PFLM6E 3npwdq6XVKPojP0z3glG75e2Pp1vKnOlU5D110oJfwGhkINdh/YabTvheHyH/N1qD8NqD38z DSeWJbEXRCZ4z2Sez3HbsM28UnKj6cV2F6kk8+hgn33rlViKMxINtZiLihMBV7+R3/8BAAA= X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD010; 1:xrHunfSus++faz5hZE8fek7jraAf3cGtYHVHeMLymsvqytCu0Bm5Fo4I0y9FhCL3eUspUvUKObYtU6L+K78l/oIkPN0NGlNGAdQwhuopyho0ECOVbX5CagPx0fDc5mWrz9p/Ul7P6EYNxvPX3YQPAOKnmTXalTEb4fwBcWm7h801Iyn0SQm3aVi45H//a8IClZuGDttm5DKqA+DoewJxFERZZrkoogzM8KtLLnB0lJP83xr/eS73dMy6olBJq7k1MFbU2xzOAg0pJXGGmGq0OA== X-Forefront-Antispam-Report: CIP:63.163.107.173; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(438002)(189002)(199003)(2950100001)(106466001)(19580405001)(19580395003)(47776003)(62966003)(46102003)(92566002)(77156002)(77096005)(229853001)(54356999)(87266999)(76176999)(23676002)(86362001)(33656002)(53416004)(5001960100002)(50986999)(189998001)(83506001)(65816999)(4001350100001)(65956001)(87936001)(50466002)(64126003)(65806001)(36756003)(110136002)(5001920100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB1037; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0201MB1037; X-Microsoft-Antispam-PRVS: <DM2PR0201MB10376849291659BD68E75DCC81B30@DM2PR0201MB1037.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520003)(3002001); SRVR:DM2PR0201MB1037; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB1037; X-Forefront-PRVS: 0597911EE1 X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2015 22:56:42.7815 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.173]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB1037 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c index 678fb5b..b359a83 100644 --- a/drivers/scsi/qla2xxx/qla_nx.c +++ b/drivers/scsi/qla2xxx/qla_nx.c @@ -2473,14 +2473,12 @@ try_blob_fw: ql_log(ql_log_info, vha, 0x00a5, "Firmware loaded successfully from binary blob.\n"); return QLA_SUCCESS; - } else { - ql_log(ql_log_fatal, vha, 0x00a6, - "Firmware load failed for binary blob.\n"); - blob->fw = NULL; - blob = NULL; - goto fw_load_failed; } - return QLA_SUCCESS; + + ql_log(ql_log_fatal, vha, 0x00a6, + "Firmware load failed for binary blob.\n"); + blob->fw = NULL; + blob = NULL; fw_load_failed: return QLA_FUNCTION_FAILED;