From patchwork Thu Jul 23 12:24:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247034 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1147631ecp; Thu, 23 Jul 2020 05:25:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH7cCPEJUpzR8K2D53UxNLv368HpvO5wZh2iVnu8g2piAqM/e45tNVPhLsRhojc3A4HWfi X-Received: by 2002:a05:6402:b86:: with SMTP id cf6mr3855949edb.42.1595507104790; Thu, 23 Jul 2020 05:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507104; cv=none; d=google.com; s=arc-20160816; b=Ae5xZg4IqoHkOqNATYq2MdsYByfkC74pMD5EZuLsYj69fOIKQ7Z2XxDOamOQtHkNvf N8I8dA9e9wZkG4E29XolsRzXEPgCxU81N17OeZf3v+HXQD7h74cIXyE4zGYa9JQCc2iE 4x4yu0/yQ6ec+yrfwKsysF0BvLHpkdOfJ3RfpvOTB7S8WWUEhJAd3Q7MY0GTie1Pft2h 39R4HAtfnqEeNhUSLzt22ue9HXX0jK3VHgGrtfOxNR4TC0Z5wzYpKp2aV4o6JY14klMI dieOCcxHHSoPmcf5EgZsUUPd49OLdnro+sIMZA1e6qpJGJ4aJLt2J3VK/cGpFSQJnpGS Elpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yvmlSuND1dq+URT3Mh7aUGf3QKAqUJVZgTZGCZzRwW8=; b=oQY6yI7gbAXIIP8F8ir6pHQV8FPcXUqMsCvk7gqEm1EEY6Rt8Bv0iQgPaxFZFuEx7G CZ9FOUEURnGnxvIq9k7NmbhzDfdmFJlglY2yVXDOdexNxuDge1UFvQOCkwAp0r6fRgA1 HgjwZi1EHOWjBYLsdqVx7/tGuiAjkRWpcBBcPo5VEKWUL1yupcTocaoafMyRVHdGuFKo u3jqQW6s+qbyQ8ntuhD1JjY2cACtkigVokkfYyRUYLvzTitRL9vDmtyNjY3wq+IWNsnS or69FpcfUl0HojPuZNhG3x0fqCeS3uESZF+WJOWcxXrFA9kg5ou3c3aBqaGwOlJbnD5C 2wOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WubRW/8f"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si1917623edq.428.2020.07.23.05.25.04 for ; Thu, 23 Jul 2020 05:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WubRW/8f"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728904AbgGWMZE (ORCPT ); Thu, 23 Jul 2020 08:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728891AbgGWMZC (ORCPT ); Thu, 23 Jul 2020 08:25:02 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3AB6C0619E3 for ; Thu, 23 Jul 2020 05:25:01 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id a15so4961517wrh.10 for ; Thu, 23 Jul 2020 05:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yvmlSuND1dq+URT3Mh7aUGf3QKAqUJVZgTZGCZzRwW8=; b=WubRW/8fEDabiHlW0cMuIotrK98GcRuRKeWXglkuhpZe1tWedsUHyPTVTojGFSz8Dq 4saNu5qFOJVYnGfac5jVqjNGExz90ry3yTMabTVw/4WqWEzM6DzYrvYwaPhrEjfFbSBN oNrHXQnkSnJXTl7FY92M9bJ7o/+bavhe2EFmLWxyo8SUf2tU06D9TaEQUX8w4DrpDUl1 IN+ZpwmHQv+ZKVTfF0hC0nGYQ8XfBb7XCtZruHZdB37PTxgQC3hr1v5PasojgxGem+qf efl9/HvVw7lP8AT1bCoZdB+zJ0XH6lJC8i77HDg4pdmdofQA26UdgwUkHe8Lhd+NhSds 7p3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yvmlSuND1dq+URT3Mh7aUGf3QKAqUJVZgTZGCZzRwW8=; b=AdzMIkJAMYD+qGXrHg6PX4zWbGp6Qpf2OMiurACCC/UcniOYsNJu5nMs2n/vriDZtT i/Zko7DV2i35HtE1oM89fGB3NOS8Xfxi7ROW6UQE5+Q8TFz6ohtKga5COIQM8UxpTBGM 83URYso5gXjWqzdXfl4dtx5jgNQzv8+is/ZVLi2s5Wd01f9ptZlPArqHYwUZPtw9Ap3J VkChbkQmAjX3gshZHNQeI5r1LzTrSz1+xFJn1LbNVhNy3k7ITvslb7XeCLK7O6JnduVw 7Nyx5XmPoLPMS0MnGFT7i2AY4+HLzdQNzCah19gsoJjwQO4kZeHyJQEUulx7azZI0Fvt DG+w== X-Gm-Message-State: AOAM53391CkwWdXtOlAIN+AMd2aiZ4MFE163PhW4B7jYyh3/Eei69sHS aBLAK4Gl+SZ0CZUyI2kTiB8mVQ== X-Received: by 2002:a5d:4bc8:: with SMTP id l8mr3786426wrt.159.1595507100629; Thu, 23 Jul 2020 05:25:00 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:00 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Anil Gurumurthy , Sudarsana Kalluru Subject: [PATCH 09/40] scsi: bfa: bfa_fcpim: Remove set but unused variable 'rp' Date: Thu, 23 Jul 2020 13:24:15 +0100 Message-Id: <20200723122446.1329773-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723122446.1329773-1-lee.jones@linaro.org> References: <20200723122446.1329773-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This change subsequently makes 'rp_fcs' unused also. Remove that too. Fixes the following W=1 kernel build warning(s): drivers/scsi/bfa/bfa_fcpim.c: In function ‘bfa_fcpim_lunmask_delete’: drivers/scsi/bfa/bfa_fcpim.c:2338:22: warning: variable ‘rp’ set but not used [-Wunused-but-set-variable] 2338 | struct bfa_rport_s *rp = NULL; | ^~ Cc: Anil Gurumurthy Cc: Sudarsana Kalluru Signed-off-by: Lee Jones --- drivers/scsi/bfa/bfa_fcpim.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/bfa/bfa_fcpim.c b/drivers/scsi/bfa/bfa_fcpim.c index 766f2b5ed2ab4..f6bf24084a47a 100644 --- a/drivers/scsi/bfa/bfa_fcpim.c +++ b/drivers/scsi/bfa/bfa_fcpim.c @@ -2335,9 +2335,7 @@ bfa_fcpim_lunmask_delete(struct bfa_s *bfa, u16 vf_id, wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun) { struct bfa_lun_mask_s *lunm_list; - struct bfa_rport_s *rp = NULL; struct bfa_fcs_lport_s *port = NULL; - struct bfa_fcs_rport_s *rp_fcs; int i; /* in min cfg lunm_list could be NULL but no commands should run. */ @@ -2353,12 +2351,8 @@ bfa_fcpim_lunmask_delete(struct bfa_s *bfa, u16 vf_id, wwn_t *pwwn, port = bfa_fcs_lookup_port( &((struct bfad_s *)bfa->bfad)->bfa_fcs, vf_id, *pwwn); - if (port) { + if (port) *pwwn = port->port_cfg.pwwn; - rp_fcs = bfa_fcs_lport_get_rport_by_pwwn(port, rpwwn); - if (rp_fcs) - rp = rp_fcs->bfa_rport; - } } lunm_list = bfa_get_lun_mask_list(bfa);