diff options
| -rw-r--r-- | drivers/char/tpm/xen-tpmfront.c | 2 |
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 | } |
