Commit 5cec5bac authored by Julia Lawall's avatar Julia Lawall Committed by Jarkko Sakkinen

tpm xen: drop unneeded chip variable

The call that used chip was dropped in 1f0f30e4.  Drop the
leftover declaration and initialization.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent 39f5712b
...@@ -289,7 +289,6 @@ static int tpmfront_probe(struct xenbus_device *dev, ...@@ -289,7 +289,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
const struct xenbus_device_id *id) const struct xenbus_device_id *id)
{ {
struct tpm_private *priv; struct tpm_private *priv;
struct tpm_chip *chip;
int rv; int rv;
priv = kzalloc(sizeof(*priv), GFP_KERNEL); priv = kzalloc(sizeof(*priv), GFP_KERNEL);
...@@ -306,7 +305,6 @@ static int tpmfront_probe(struct xenbus_device *dev, ...@@ -306,7 +305,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
rv = setup_ring(dev, priv); rv = setup_ring(dev, priv);
if (rv) { if (rv) {
chip = dev_get_drvdata(&dev->dev);
ring_free(priv); ring_free(priv);
return rv; return rv;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment