Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1486637ybl; Thu, 22 Aug 2019 15:39:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRvveCdIIVxsZKI7PQ30ZS6hxfM7p6V0/MsCkbvvWIur58hQJE5DzAuBPJ3rAufAfUBodO X-Received: by 2002:a62:64d4:: with SMTP id y203mr1635646pfb.91.1566513555237; Thu, 22 Aug 2019 15:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566513555; cv=none; d=google.com; s=arc-20160816; b=h5sS7wvfpbT3wk0NthIj8fj3DLyhtRF8X/UJT1w3C9zzFHJ+8HJorEf0zlSeiafdPO PlDGLxtfNdxw0D17T6dcLg23kJenY/zi68+NUl7vyYz1AuJC/7A24O+OgMlN/fPUUvpe d79iP3GImjhJlyAlqJ+LCIURwWMofgDnrd9KFLgUuGyu36foRdQ3FKlATIvXJFCgWD9k RsdxGMUlUZJezmA/TxNb/6xKCCgTc3uT7nUBKsYY0uWu3xkazTP+Jm+3j6MhPKgn00qf Q04X9+u0TRockJESlJ4U5byc2Um7E1Kf3ZGCY201RwJGLIsb20Noa0UgTA9oRdlHemY7 gctg== 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=S/4hHFUYYFFAMzJTczxIx6cxlDia+vPc3FrfLkRy1CA=; b=t5Pkeyvimb8r38BoKhy8nOHpgYswb4I/o3nsnSAu/6zrYn0vf3I2O1tTyLDz2N2hOG irCYpS06SYelmmzob+dtbZaoZhkoEGinmxtYX7avcTbbXC6+l5V7x9nNIxgfc47HKnRs o/r2oMMRAs4T5DLhRBn+hYqGsvxpdh2QQbVrC4x9VaZtY0VkPI+2Ldot5Ngf5x8ABT6Q da6nWGRm7l5Dj/K16TL4Sb8NzFfpx6pDXIDxf4ZdVy3K4WyF/gGyaioVM/thHf6qZIPX Ln9VHBrRsq4RoRYy6TgYkt6KnNqs67cEW7GzacDkgxtvFqn6D1ue3ObL+XtW3W17U8Ya yjGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aEUILieX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v34si715339plg.232.2019.08.22.15.39.00; Thu, 22 Aug 2019 15:39: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; dkim=pass header.i=@kernel.org header.s=default header.b=aEUILieX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388902AbfHVRPy (ORCPT + 99 others); Thu, 22 Aug 2019 13:15:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390428AbfHVRIj (ORCPT ); Thu, 22 Aug 2019 13:08:39 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5247233FD; Thu, 22 Aug 2019 17:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493719; bh=JRxs4CjZsR9Mwk1SkqyAGfhLAqxCj8GtLVUw0Wj+tr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aEUILieXTTBA43BxI7EAcuB3muCrqYVhIsVHW+E9XA0XYYoUw3xCKEkvCTvAY3Ma1 cjgUx1gDN1Oj46KsyQHF2e/aayY1e6qSQrdyHWa3Tl/rPpsweVFGPjt2aGcws8wQCO FnuEG3Q5ReRhqupmWoGP9Lv9Y/sJWMsr4+kEKueM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , Hulk Robot , Boris Ostrovsky , Juergen Gross , Sasha Levin Subject: [PATCH 5.2 046/135] xen/pciback: remove set but not used variable 'old_state' Date: Thu, 22 Aug 2019 13:06:42 -0400 Message-Id: <20190822170811.13303-47-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit 09e088a4903bd0dd911b4f1732b250130cdaffed ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/xen-pciback/conf_space_capability.c: In function pm_ctrl_write: drivers/xen/xen-pciback/conf_space_capability.c:119:25: warning: variable old_state set but not used [-Wunused-but-set-variable] It is never used so can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing Reviewed-by: Boris Ostrovsky Signed-off-by: Juergen Gross Signed-off-by: Sasha Levin --- drivers/xen/xen-pciback/conf_space_capability.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/xen/xen-pciback/conf_space_capability.c b/drivers/xen/xen-pciback/conf_space_capability.c index 73427d8e01161..e5694133ebe57 100644 --- a/drivers/xen/xen-pciback/conf_space_capability.c +++ b/drivers/xen/xen-pciback/conf_space_capability.c @@ -116,13 +116,12 @@ static int pm_ctrl_write(struct pci_dev *dev, int offset, u16 new_value, { int err; u16 old_value; - pci_power_t new_state, old_state; + pci_power_t new_state; err = pci_read_config_word(dev, offset, &old_value); if (err) goto out; - old_state = (pci_power_t)(old_value & PCI_PM_CTRL_STATE_MASK); new_state = (pci_power_t)(new_value & PCI_PM_CTRL_STATE_MASK); new_value &= PM_OK_BITS; -- 2.20.1