tpm xen: drop unneeded chip variable
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 5 Feb 2017 21:39:37 +0000 (22:39 +0100)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 14 Feb 2017 17:24:33 +0000 (19:24 +0200)
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>
drivers/char/tpm/xen-tpmfront.c

index 5aaa268f3a784a8aa0eb8a2889deeef6d071cccb..656e8af95d5282f8dbce5e4bd6e277c368092a81 100644 (file)
@@ -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;
        }