Received: by 10.213.65.68 with SMTP id h4csp453624imn; Tue, 13 Mar 2018 09:32:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELsLWddy3PhoJzsBWbuzb0jDTTfAL6baaGdzPVPq6owwo3AEctOkSjbacmXrCCT+uPEPo2az X-Received: by 2002:a17:902:341:: with SMTP id 59-v6mr1045324pld.407.1520958723872; Tue, 13 Mar 2018 09:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958723; cv=none; d=google.com; s=arc-20160816; b=RRUyG2yvobOLoEMzrOEwauy5GXd4G+v2Q7AVb/3p3JTc9uIBDDSQxt2M6Mm11DanEq ldkY5CicbxhWI9ZabbbYFzkRtiHNrfp7Ww7THIaGL+2iH8soO3SzqUE0WAr7bKsNMasA G/BLNqpO5eW3hYBR46Og+TpwqIgM/0MvaHOds9ssrKyL6aOu3LZj6FdgL0N/g54oXmB4 TDY9m8ISna9/Wuuigwd+b4iagcnnFd6jq7PLsjHIBfLJMBuh+eX+TG7KSRv6Cfevdns+ VG6wHS+qdeNxjvQfRgjW2TGzGPU6vPm1O4lx9yGWQBbsiX8ShwqQXfmE0qoQxptyZBNS Pq+g== 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=g21fPvHdoxV1Gu0r84oNt5o+Rt+TdZnvdGTqC7QrXX0=; b=puiwBJ1Le6z0nK8tC05zoLcSS7ap2vg7kR4lH+Lh8E55vbVJ/wmfOOS+dd25Zn/9Qh 9e99OBKUwyXpmivq7prgQaFCy1qOMwT9W8d2c3gw9ieWaWRBMp9dHexEHuR1nCRMayt6 WIvaKOTjkAlAYtZG7bkfLq7rCJVkk4/F7BP4M78OPY27fnT7QM1YyABMCShBBGrpz5tD i00jHTVfJPWds8Eqytu62Mudr8li+QjX7pQtEGrSI6Exn0cS67wZKIE9QUl55SRdVp6I 58FoI7xaCiGsVQUkfomybbhmENAdktfOqLu2v4alAQZfbOzicZIlFSIMUNlBloXdjN/7 e44g== 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 w17-v6si340872plp.561.2018.03.13.09.31.49; Tue, 13 Mar 2018 09:32:03 -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 S933754AbeCMQaH (ORCPT + 99 others); Tue, 13 Mar 2018 12:30:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60070 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753080AbeCMPdR (ORCPT ); Tue, 13 Mar 2018 11:33:17 -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 325DE122E; Tue, 13 Mar 2018 15:33:16 +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.15 121/146] tpm: remove unused variables Date: Tue, 13 Mar 2018 16:24:48 +0100 Message-Id: <20180313152329.607168144@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-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 @@ -256,7 +256,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); @@ -306,7 +305,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);