Received: by 10.213.65.68 with SMTP id h4csp444523imn; Tue, 13 Mar 2018 09:14:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELsXUEtgleuHD7R+k69o5iZFpQu/2k9740KFmAnNqlPYBtpJCAybKEw/rTzDQvNXvptfiotW X-Received: by 2002:a17:902:7843:: with SMTP id e3-v6mr1068183pln.83.1520957677244; Tue, 13 Mar 2018 09:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957677; cv=none; d=google.com; s=arc-20160816; b=rQy0yezV/imv6z7ha7GJpaRonXLvyxkZ/PWqZkkvJ4OvgOcpsPTef8M5FfJWaTWpZR KPEeCXrbdNtffVyjHrEHr7zdzaVSmfZLkKAj2FnLoOnzHBlZuuR2ozgMwsalwqFIAfym 9ju1xb+SjyKkGGyhDrBhmWZ/BoZG+PVRc6sFy6WDL2oa91uJNpwUzlIyOZQh6iTbxxyX zT1a8/9+vZZnZjrxcZujxquxm3a2ia+8ZhZLhX1CFSIclcGU/iEFyBe14nq5+/8YvJmh QDdAzBjQZsy4zuQhXk49ta1RobdAWkHxrawP5PJFgsklqGRGqCpZzCfH1LoXpnpJM8K9 kc2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=KnjJ0LmNhpI2/UYWFbwVgBJK8LCf9mb5Fhrp4oNLcgc=; b=pxr3P1msfW8y8QFZY5E+4tqU3AOagjSasjIu2f3OpLmK/3LC0g7zzzhcObkxTWnZ8Q RlKpEf7B1KFCgDxkucXcGznzHzHvF2zdSXbtpNVbwtpVut3/pgYO4A97/yr+2ybcBQxZ tQgCiwd6zLsMh4KmS8d4f2xYEDVZtWnmfCl84Erhqx+GIpo+wvlyrV5SZbDfr8wEeqWR eWuFTd6vLAYa4qgu3MxFThplDYmcShzVufWS7EFu83XV8TTtRP2MOvI4eEWPHkIvRAtw J0RHkXW9Zw0pB6/TEOCXP7AaWyTzv9AdSfarLN4amAyQQr6LODaguF8qbFPUvFY38yhS PtcQ== 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 q4-v6si326643plr.365.2018.03.13.09.14.22; Tue, 13 Mar 2018 09:14:37 -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 S934094AbeCMQNH (ORCPT + 99 others); Tue, 13 Mar 2018 12:13:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33338 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934104AbeCMPf4 (ORCPT ); Tue, 13 Mar 2018 11:35:56 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 97737114E; Tue, 13 Mar 2018 15:35:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Jarkko Sakkinen , James Morris Subject: [PATCH 4.14 022/140] tpm: remove unused variables Date: Tue, 13 Mar 2018 16:23:45 +0100 Message-Id: <20180313152459.534528444@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc upstream. The CLKRUN fix caused a few harmless compile-time warnings: drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_pnp_remove': drivers/char/tpm/tpm_tis.c:274:23: error: unused variable 'priv' [-Werror=unused-variable] drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_plat_remove': drivers/char/tpm/tpm_tis.c:324:23: error: unused variable 'priv' [-Werror=unused-variable] This removes the variables that have now become unused. Fixes: 6d0866cbc2d3 ("tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()") Signed-off-by: Arnd Bergmann Reviewed-by: Jarkko Sakkinen Reviewed-by: James Morris Signed-off-by: Jarkko Sakkinen Signed-off-by: Greg Kroah-Hartman --- drivers/char/tpm/tpm_tis.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -255,7 +255,6 @@ MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl); static void tpm_tis_pnp_remove(struct pnp_dev *dev) { struct tpm_chip *chip = pnp_get_drvdata(dev); - struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); tpm_chip_unregister(chip); tpm_tis_remove(chip); @@ -305,7 +304,6 @@ static int tpm_tis_plat_probe(struct pla static int tpm_tis_plat_remove(struct platform_device *pdev) { struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); - struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); tpm_chip_unregister(chip); tpm_tis_remove(chip);