Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1520180pxb; Sun, 11 Apr 2021 23:09:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySjYrqHBLum5EWRM7FwDeGP+w87qy1wzq+ckJ9rDZh6Ga3YomrF/KiroHu748TqnY7kSyV X-Received: by 2002:a50:8fe6:: with SMTP id y93mr18501457edy.224.1618207775647; Sun, 11 Apr 2021 23:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618207775; cv=none; d=google.com; s=arc-20160816; b=OwxGI9BIHI/+a7hvHpv5RAI54ZwBX17nu9CPN+AmuvpUZCcEsKgon6LIPmFQnx3pPa Mdtf3imFseRYbNGOMQOh/Vd0mFPyH4fu/eK34Pb2w2WldzePV+/qpv/99EudetlsXuqc Lv4n5cxuP4/U4uXWWiaztUYf/ONQsCdOS4SyTWVSQv+Nk7csY3KwL5T8z/STvsAAz9+e NHeylv1KVT49lcvvY4GFzl0wTy+peHJaVF7zVmG4xgojYHbIzp3pbeBR5aaRDTATkrdl qtVfY9t4hkX/4Sp1Tb6VvTiHKTUVo/l6ZLv/s45H21u49jB/raINUqK2CFRGSVkCXpv5 731g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ueDYZiCAOpiTt/8hcL0wSDFIG/j3wqiW38J5JQMtJBM=; b=DCotpkOegXbDnuVIUUuNfLAQ+ZIxEI0ImuJBz7ggha9JNRsev/gQwlgxbV1kWpeJlY 9bI3AHnyDnSE/PIXnmLNyz9GCE+ESo5sM8AWksMXRJxs5vITZ/edhnaw2evElbxiqiip eSWiu2Lb2QeoPxXuqRVn+aACY2p+Pu5/dKT+4MNGuxwIZy9GHZYng0staWXNtFAfFvf4 YPE0KU3v8/bdE3AMpvQUlzm/8PSHP+3+Pbc7OHUvxhoI/Mj+mU4Aoo3XWdk8EaBlVNm2 eJNybriXEOAaz7pRDIBrIEj+zg5jkemp9zDmla2RcmBJKk+ieScxswTEb+jLVBncDPjY 0LGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si6938016eji.230.2021.04.11.23.09.12; Sun, 11 Apr 2021 23:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbhDLF7d (ORCPT + 99 others); Mon, 12 Apr 2021 01:59:33 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:49062 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhDLF7c (ORCPT ); Mon, 12 Apr 2021 01:59:32 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UVD1scv_1618207148; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVD1scv_1618207148) by smtp.aliyun-inc.com(127.0.0.1); Mon, 12 Apr 2021 13:59:13 +0800 From: Jiapeng Chong To: sathya.prakash@broadcom.com Cc: sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] scsi: message: fusion: remove useless variable Date: Mon, 12 Apr 2021 13:59:06 +0800 Message-Id: <1618207146-96542-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/message/fusion/mptsas.c:783:14: warning: variable ‘vtarget’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/message/fusion/mptsas.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 5eb0b33..c54e823 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -780,13 +780,11 @@ static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy) mptsas_add_device_component_starget(MPT_ADAPTER *ioc, struct scsi_target *starget) { - VirtTarget *vtarget; struct sas_rphy *rphy; struct mptsas_phyinfo *phy_info = NULL; struct mptsas_enclosure enclosure_info; rphy = dev_to_rphy(starget->dev.parent); - vtarget = starget->hostdata; phy_info = mptsas_find_phyinfo_by_sas_address(ioc, rphy->identify.sas_address); if (!phy_info) -- 1.8.3.1