aboutsummaryrefslogtreecommitdiff
path: root/hw/tpm
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2015-04-15 10:18:55 -0400
committerMichael Tokarev <mjt@tls.msk.ru>2015-04-30 16:05:48 +0300
commit29b558d87710a962203a45d9dd57bf7eab19dca0 (patch)
tree32442190e52bd70b5c74c5d03b5e00035dc4f355 /hw/tpm
parent1897b212b780a02a5605ad934a6dd16c76571fe3 (diff)
downloadqemu-29b558d87710a962203a45d9dd57bf7eab19dca0.zip
qemu-29b558d87710a962203a45d9dd57bf7eab19dca0.tar.gz
qemu-29b558d87710a962203a45d9dd57bf7eab19dca0.tar.bz2
tpm: fix coding style
Fix coding style in one instance. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/tpm')
-rw-r--r--hw/tpm/tpm_tis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
index 4b6d601..b8235d5 100644
--- a/hw/tpm/tpm_tis.c
+++ b/hw/tpm/tpm_tis.c
@@ -842,7 +842,7 @@ static void tpm_tis_mmio_write_intern(void *opaque, hwaddr addr,
(tis->loc[locty].sts & TPM_TIS_STS_EXPECT)) {
/* we have a packet length - see if we have all of it */
#ifdef RAISE_STS_IRQ
- bool needIrq = !(tis->loc[locty].sts & TPM_TIS_STS_VALID);
+ bool need_irq = !(tis->loc[locty].sts & TPM_TIS_STS_VALID);
#endif
len = tpm_tis_get_size_from_buffer(&tis->loc[locty].w_buffer);
if (len > tis->loc[locty].w_offset) {
@@ -853,7 +853,7 @@ static void tpm_tis_mmio_write_intern(void *opaque, hwaddr addr,
tpm_tis_sts_set(&tis->loc[locty], TPM_TIS_STS_VALID);
}
#ifdef RAISE_STS_IRQ
- if (needIrq) {
+ if (need_irq) {
tpm_tis_raise_irq(s, locty, TPM_TIS_INT_STS_VALID);
}
#endif