mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
1897b212b7
commit
29b558d877
|
@ -842,7 +842,7 @@ static void tpm_tis_mmio_write_intern(void *opaque, hwaddr addr,
|
||||||
(tis->loc[locty].sts & TPM_TIS_STS_EXPECT)) {
|
(tis->loc[locty].sts & TPM_TIS_STS_EXPECT)) {
|
||||||
/* we have a packet length - see if we have all of it */
|
/* we have a packet length - see if we have all of it */
|
||||||
#ifdef RAISE_STS_IRQ
|
#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
|
#endif
|
||||||
len = tpm_tis_get_size_from_buffer(&tis->loc[locty].w_buffer);
|
len = tpm_tis_get_size_from_buffer(&tis->loc[locty].w_buffer);
|
||||||
if (len > tis->loc[locty].w_offset) {
|
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);
|
tpm_tis_sts_set(&tis->loc[locty], TPM_TIS_STS_VALID);
|
||||||
}
|
}
|
||||||
#ifdef RAISE_STS_IRQ
|
#ifdef RAISE_STS_IRQ
|
||||||
if (needIrq) {
|
if (need_irq) {
|
||||||
tpm_tis_raise_irq(s, locty, TPM_TIS_INT_STS_VALID);
|
tpm_tis_raise_irq(s, locty, TPM_TIS_INT_STS_VALID);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue