From 95d02b554669fd2d9b1fbbfe04c53ca7952d4762 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Sun, 5 Feb 2017 22:39:37 +0100 Subject: [PATCH] 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 Reviewed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen OraBug: 26662731 (cherry picked from commit 5cec5bacd37784a1596d2f8fea377212948a0bf4) Signed-off-by: Boris Ostrovsky Reviewed-by: Joao Martins --- drivers/char/tpm/xen-tpmfront.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/tpm/xen-tpmfront.c b/drivers/char/tpm/xen-tpmfront.c index 4deb91b80742..b25650c20d95 100644 --- a/drivers/char/tpm/xen-tpmfront.c +++ b/drivers/char/tpm/xen-tpmfront.c @@ -287,7 +287,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); @@ -304,7 +303,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; } -- 2.50.1