Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1116044ybb; Thu, 28 Mar 2019 20:26:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTlZQ9xDiMcXpKNhoYMrGspcqNZfthawG1mfontZ9gzCfyY8L/gLaEH7DTQBvMqUIlNYyq X-Received: by 2002:a17:902:2a29:: with SMTP id i38mr47506369plb.22.1553829988524; Thu, 28 Mar 2019 20:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553829988; cv=none; d=google.com; s=arc-20160816; b=UBckrBKsUdvZDx68ntmRunm2InbiuxyZEIYKgYwP7BFLTnh7NtXleiWOA7Wa43oESA 5ERRYY4KASs5tfz4Bd20Olkh+BbsFt8fAe2T5DqprrloRYjZlduPKAlUclf+P3UcaSo8 Yrc/WzfKwqhIl3Caf05R3WhLIEqWa53q8K7/h040HMRepK09qjalS/fOUGIvqqIhqsnh 1eLymhN+jFrsNW1tBnCoG69F7FfNo+PtfppZFfhfGeVJE60vggmZ5BgL9S+cjXp7KdwS pxnG/TswVIn1/P0nkh5UbD+z/Xxc+0tY9mLlcqdM+Oqcjnt2UCSG3Sn8QIvQs8SaC2ii 1L6g== 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=1gz7w8E7nOE8Z9HpIIUKkuaR+DsxxGLBMGnbP6/boyo=; b=qk6HrnrGKNhf3AZam9asmJC23UFFd+JAWWMIxdkBw7BKI1IXkZz952cN+PPSFYwAQI AabwE06zzUeZ402jAeB1oEwDqv1spUhHECt/vG+QaVoZbSqBDI9y+LupUa2QNux78oXV 4b0LKIEWjG1ANQ0tYhvArnjC45v7Wc9h6MY4ytoFgkdEmjUUBTGa5c7ztRMV1ptdTx4i kbmfV1rJsUp34OkK6mU1lc9HEitl4SHJe8UIcZKGyh0UXl0RaEUy6hMEe0/Oe4QRGyRE DQ2cQRRDdwlcs27h88tdFvsLNN/jjLDHZ1SqTJhoDCYqj1AVS0ml62nFwIfQ2rffSSqy YxUg== 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 r63si886993plb.94.2019.03.28.20.26.13; Thu, 28 Mar 2019 20:26:28 -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 S1728740AbfC2DYx (ORCPT + 99 others); Thu, 28 Mar 2019 23:24:53 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:12760 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727654AbfC2DYx (ORCPT ); Thu, 28 Mar 2019 23:24:53 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.19]) by rmmx-syy-dmz-app11-12011 (RichMail) with SMTP id 2eeb5c9d9000cc4-76a40; Fri, 29 Mar 2019 11:24:48 +0800 (CST) X-RM-TRANSID: 2eeb5c9d9000cc4-76a40 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from dxhost1.openstacklocal (unknown[223.105.0.243]) by rmsmtp-syy-appsvr10-12010 (RichMail) with SMTP id 2eea5c9d8fffa72-4dfee; Fri, 29 Mar 2019 11:24:48 +0800 (CST) X-RM-TRANSID: 2eea5c9d8fffa72-4dfee From: Ding Xiang To: QLogic-Storage-Upstream@qlogic.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: bnx2fc: remove unneeded variable Date: Fri, 29 Mar 2019 11:24:12 +0800 Message-Id: <1553829852-16525-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 "rc" is unneeded,just return SUCCESS Signed-off-by: Ding Xiang --- drivers/scsi/bnx2fc/bnx2fc_io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index bc9f2a2..8def63c 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c @@ -1083,7 +1083,6 @@ int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd) static int bnx2fc_abts_cleanup(struct bnx2fc_cmd *io_req) { struct bnx2fc_rport *tgt = io_req->tgt; - int rc = SUCCESS; unsigned int time_left; io_req->wait_for_comp = 1; @@ -1110,7 +1109,7 @@ static int bnx2fc_abts_cleanup(struct bnx2fc_cmd *io_req) kref_put(&io_req->refcount, bnx2fc_cmd_release); spin_lock_bh(&tgt->tgt_lock); - return rc; + return SUCCESS; } /** -- 1.9.1