char: tpm: nuvoton: remove unused variable
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 29 Nov 2013 17:00:18 +0000 (18:00 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Mon, 6 Jan 2014 13:37:24 +0000 (14:37 +0100)
“wait” wait queue is defined but never used in the function, thus
it can be removed.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_i2c_nuvoton.c

index 6276fea..4f5ac25 100644 (file)
@@ -178,7 +178,6 @@ static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value,
 {
        if (chip->vendor.irq && queue) {
                s32 rc;
-               DEFINE_WAIT(wait);
                struct priv_data *priv = chip->vendor.priv;
                unsigned int cur_intrs = priv->intrs;