summaryrefslogtreecommitdiff
path: root/drivers/char/tpm
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2017-02-06 00:39:37 +0300
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2017-02-14 20:24:33 +0300
commit5cec5bacd37784a1596d2f8fea377212948a0bf4 (patch)
treee676d9ebbcad917edd522d413497a209c6a9f0c5 /drivers/char/tpm
parent39f5712b8f0167b446dd8a0a3754d6cd50e27dd8 (diff)
downloadlinux-5cec5bacd37784a1596d2f8fea377212948a0bf4.tar.xz
tpm xen: drop unneeded chip variable
The call that used chip was dropped in 1f0f30e404b3. Drop the leftover declaration and initialization. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/tpm')
-rw-r--r--drivers/char/tpm/xen-tpmfront.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/tpm/xen-tpmfront.c b/drivers/char/tpm/xen-tpmfront.c
index 5aaa268f3a78..656e8af95d52 100644
--- a/drivers/char/tpm/xen-tpmfront.c
+++ b/drivers/char/tpm/xen-tpmfront.c
@@ -289,7 +289,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
const struct xenbus_device_id *id)
{
struct tpm_private *priv;
- struct tpm_chip *chip;
int rv;
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
@@ -306,7 +305,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
rv = setup_ring(dev, priv);
if (rv) {
- chip = dev_get_drvdata(&dev->dev);
ring_free(priv);
return rv;
}