Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4601480ybh; Tue, 6 Aug 2019 14:39:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCquFvOmj66E1oDOhZGALVCiKA/jYkb3qCXdV8Rn5zZ4VUWzbH9gujK/7ewo8LoXd65/PI X-Received: by 2002:a63:607:: with SMTP id 7mr4813435pgg.240.1565127572264; Tue, 06 Aug 2019 14:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565127572; cv=none; d=google.com; s=arc-20160816; b=MyicstbMkEeJW13YpE/p3hZWJEHXPmC7XzkP6BZz4sOnBrQ3IAa2nPZg/LuohuS/4f CNUtnhucu0cvKA77SGkzVZizEcdDdWS5aMxBF8yCBQD0/CYYm4LlWT15Hz9Mq7DLT9Yw owcBT7Vt09lFH/y68nLT6FcI4MPyyEUkbEa7U54iF44nXnTFim4U+jp3BROYI8ne57I+ J2Her9DXXTXC2d57S5zmna7E3W1ILbDlJ4reEWwTQHKsvzNzgLHcTw5bDQfTkM7u2FJF 1u5erZ4s3L2azxcpFE5GR3TBZsmuz1Wzcf7V8blruyEfe/e8BmBWxF7GRc3ClmnCL9yn rgKw== 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=SnGvns7AMe0ytIf3OQDt/uFZT2Wa+H6mj0bfw212i0M=; b=j89x6XGfyXpwZDrwEkvoAJqanLWWdfphuPzL+d9/iJwsvAphD3AH9UnbpJkzGHGn2V Wiui2VojvHV1coKJ97lgeIwHh/VNV+/woUnZ2BSX/QEI9mw2gyMiYCwRhzZIA0MVEBRi yqoVUieFx7mq4lARomg0yM/NrqjYGk8++V21tR27KTfm8shQueDELvASC7d7kDPzEaGN qtvBzTbHbsv1M+w/tSSu4lAhdD0WjplInfrGXzUryCOC/kpsIipCOVSx51CKvtCSNMge /wj2JIuWXjj0yPNwwwiLqbax7Cq44JPrNg66u6FStj+X9eSvCALYPhJbn5rkNK9u78oW th+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AP2JcmLH; 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 83si49726882pgc.207.2019.08.06.14.39.16; Tue, 06 Aug 2019 14:39:32 -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=AP2JcmLH; 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 S1729550AbfHFVh5 (ORCPT + 99 others); Tue, 6 Aug 2019 17:37:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:55606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728771AbfHFVhy (ORCPT ); Tue, 6 Aug 2019 17:37:54 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 3C45121874; Tue, 6 Aug 2019 21:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565127474; bh=ZaA9gT/QC75ZhyB/qLA7VAa4ghsqZhjlKDnZ2jOSQ3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AP2JcmLH44D8gwqzdbuK61MMBt12e7b8o+gvMwxZYwjYApfWSAFNUQLUaA1dPoDTL Cc6w6o3pmIj9zGbmp3sW9yoYxdna2fJalb3h7b0vTkBB3+CN0doDSWjmnO3SIrZHCj 5AZ3HktkY1BNssCM5QtXmylDbcGDQup1uJiSp6Kk= 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 AUTOSEL 4.4 02/14] xen/pciback: remove set but not used variable 'old_state' Date: Tue, 6 Aug 2019 17:37:36 -0400 Message-Id: <20190806213749.20689-2-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190806213749.20689-1-sashal@kernel.org> References: <20190806213749.20689-1-sashal@kernel.org> MIME-Version: 1.0 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 7f83e9083e9dd..b1a1d7de0894e 100644 --- a/drivers/xen/xen-pciback/conf_space_capability.c +++ b/drivers/xen/xen-pciback/conf_space_capability.c @@ -115,13 +115,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