hw/tpm/tpm_passthrough: Simplify if-statements a little bit
commit5f333d79a4337b390fa4103e270d2bdaf243aad6
authorThomas Huth <thuth@redhat.com>
Wed, 12 Oct 2016 15:33:44 +0000 (12 17:33 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 28 Oct 2016 15:17:23 +0000 (28 18:17 +0300)
tree6d7cdb75a4afb6c4e31910213f21a0e04ca93785
parentc551cd52cc4424b98548132d6a49baddeae6ee80
hw/tpm/tpm_passthrough: Simplify if-statements a little bit

The condition  '!A || (A && B)' is equivalent to '!A || B'

Buglink: https://bugs.launchpad.net/qemu/+bug/1464611
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/tpm/tpm_passthrough.c