diff mbox

[4/8] drivers:tmp.c Fix warning: variable 'rc' set but not used

Message ID 1276547208-26569-5-git-send-email-justinmattock@gmail.com (mailing list archive)
State Not Applicable
Delegated to: Douglas Landgraf
Headers show

Commit Message

Justin P. Mattock June 14, 2010, 8:26 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c
index 05ad4a1..3d685dc 100644
--- a/drivers/char/tpm/tpm.c
+++ b/drivers/char/tpm/tpm.c
@@ -514,6 +514,8 @@  void tpm_gen_interrupt(struct tpm_chip *chip)
 
 	rc = transmit_cmd(chip, &tpm_cmd, TPM_INTERNAL_RESULT_SIZE,
 			"attempting to determine the timeouts");
+	if (!rc)
+		rc = 0;
 }
 EXPORT_SYMBOL_GPL(tpm_gen_interrupt);