aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2017-02-05 16:39:37 -0500
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2017-02-14 12:24:33 -0500
commit5cec5bacd37784a1596d2f8fea377212948a0bf4 (patch)
treee676d9ebbcad917edd522d413497a209c6a9f0c5
parent39f5712b8f0167b446dd8a0a3754d6cd50e27dd8 (diff)
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>
-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,
289 const struct xenbus_device_id *id) 289 const struct xenbus_device_id *id)
290{ 290{
291 struct tpm_private *priv; 291 struct tpm_private *priv;
292 struct tpm_chip *chip;
293 int rv; 292 int rv;
294 293
295 priv = kzalloc(sizeof(*priv), GFP_KERNEL); 294 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
@@ -306,7 +305,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
306 305
307 rv = setup_ring(dev, priv); 306 rv = setup_ring(dev, priv);
308 if (rv) { 307 if (rv) {
309 chip = dev_get_drvdata(&dev->dev);
310 ring_free(priv); 308 ring_free(priv);
311 return rv; 309 return rv;
312 } 310 }