Skip to contentSkip to conversation

char: tpm: nuvoton: remove unused variable

PATCH Applied Michal Nazarewicz 3 participants 3 messages Nov 29, 2013 – Dec 7, 2013 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: tpm: nuvoton: remove unused variable

From: Michal Nazarewicz <[email protected]>

“wait” wait queue is defined but never used in the function, thus it can be removed.

---
 drivers/char/tpm/tpm_i2c_nuvoton.c | 1 -
 1 file changed, 1 deletion(-)
drivers/char/tpm/tpm_i2c_nuvoton.c +0 -1
index 6276fea..4f5ac25 100644
@@ -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;
 
Signature · 1 line
1.8.4.1
maintainer Applied
#2 lore raw

Am Freitag, 29. November 2013, 22:12:52 schrieb Jason Gunthorpe:

Quoted 8 lines · Michal Nazarewicz
Quoted 7 lines

From: Michal Nazarewicz <[email protected]>

“wait” wait queue is defined but never used in the function, thus it can be removed.

Quoted 7 lines
Quoted 2 lines
 drivers/char/tpm/tpm_i2c_nuvoton.c | 1 -
 1 file changed, 1 deletion(-)

Thanks,
Jason

Applied.

https://github.com/PeterHuewe/linux-tpmdd/commits/for-james

Thanks
Peter