From patchwork Tue Jan 2 10:38:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10140265 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3C9A860362 for ; Tue, 2 Jan 2018 10:40:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08A9E28AC1 for ; Tue, 2 Jan 2018 10:40:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0D6828AC6; Tue, 2 Jan 2018 10:40:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8024628AC1 for ; Tue, 2 Jan 2018 10:40:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752539AbeABKkK (ORCPT ); Tue, 2 Jan 2018 05:40:10 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:64414 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752665AbeABKjx (ORCPT ); Tue, 2 Jan 2018 05:39:53 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lwqoy-1eyyoR3pLk-016P5w; Tue, 02 Jan 2018 11:39:28 +0100 From: Arnd Bergmann To: Peter Huewe , Jarkko Sakkinen Cc: Arnd Bergmann , Jason Gunthorpe , Greg Kroah-Hartman , Azhar Shaikh , James Morris , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] tpm: remove unused variables Date: Tue, 2 Jan 2018 11:38:54 +0100 Message-Id: <20180102103924.1035536-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:1nl8icka17YeBpVPnkPdJv+ncfSHweuU2sI2gWy8fV7UcZK81Jp QjKXgxcUQXAoi5iQuk/B7gJtQyMELpZTNKGH22+lIglX3dJTHbWUotS4gwrcaIKWUZ5sAOf /k6tbrMj2/BrrIoaYQQf74Pf1eF+TtDvPbyyTrjl8XyPIsrH+Tn2RchYmRm1PkhX9NRkkJl mz72LsuZfWaaJiv7TYtRQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:l3FhmskZEtw=:tSE3flnMwFE1qxr3DxEPSP v8UAQ4Yx260TKhlZd7QWt/ZczLE+S6IYQX0XW5ABjFrbbn4hkh7mZAB/k/Nl3Ln1wJcGX6XEg MXr6B7bVVQQTQN0IcMPs0QV2USNfkt6BHzb7huCVvnc55d1uTZK4mUfFxtbb8L2piVew8XznM Guiy9USaoOggUiDrMK9HfyP2tTP2AzPzoHQT64KT692Z3wZ7xcWMkhpa/aE1lzHDyS+LFQ0wy Ep6MRIRJBl8Mst/m9qwbPHq94/qJ1CEvUyXlMaCxUq6OPvc3P9sMQjvskCJA5pzV2sUIRkaoB oyZ/IhN2+PjuTh5wwQtwsaUd04wtcjHtXBf0s4uyKO3H/McuzuIK7NIWvndLfGEiJhEGy49gc omEHrFWJ09Kw3uE8cgMQk+5ciJhKN1/0W/Bb8tjdjeu3vmfDuFkjlF/6TTvVqVwsHsqkEULTo kAroHTn83sJe1sq2bB7l97G5/aj9gw7DC4dRL4j440vkI1CWy1FSRjOz0dvrdfPJcZtZFVjdL 5pi3t6s3Srx6L2FsGoOuWsIUl/QlZnM5zYoje3+PcCfVI54VGiIJsLUZHWJUD9rnaYwjG3eZa T1H9Phry1UIaMrFtoajyJGf3dUHhuGe90P1acZ7nJUuig4iebZ0VBecLkxLzMO33Mbrsd1JZR lJlV/nnvBqm42JzxGPiWw/9PviE74vhB19CePZYtp6KGPoICoUskS/2H/JfyQ9+PXfEPLK0oq UyQgjEQ5RDcCrAj9XXvHt2JrB2GK/XWZ6qZ48w== Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/char/tpm/tpm_tis.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index c847fc69a2fc..1bcbf355141e 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -271,7 +271,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); @@ -321,7 +320,6 @@ static int tpm_tis_plat_probe(struct platform_device *pdev) 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);