summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2017-02-05 22:39:37 +0100
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2017-02-14 19:24:33 +0200
commit5cec5bacd37784a1596d2f8fea377212948a0bf4 (patch)
treee676d9ebbcad917edd522d413497a209c6a9f0c5 /drivers/char
parent39f5712b8f0167b446dd8a0a3754d6cd50e27dd8 (diff)
downloadop-kernel-dev-5cec5bacd37784a1596d2f8fea377212948a0bf4.zip
op-kernel-dev-5cec5bacd37784a1596d2f8fea377212948a0bf4.tar.gz
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')
-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 5aaa268..656e8af 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;
}
OpenPOWER on IntegriCloud