aboutsummaryrefslogtreecommitdiff
path: root/tests/ahci-test.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2015-03-17 16:58:19 -0400
committerMichael Tokarev <mjt@tls.msk.ru>2015-03-19 11:27:43 +0300
commit7e7d49d68bb165ddfdf29929e0a487264085ca51 (patch)
treec84ade15c074c5902a5d3c10cba22cfc557535cb /tests/ahci-test.c
parent636a30a890c50f734c90ee929e16492fbc6c73e3 (diff)
qtest/ahci: Fix a bit mask expression
A thinko that clang 3.5.0 caught. Thankfully does not introduce any new failures. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests/ahci-test.c')
-rw-r--r--tests/ahci-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ahci-test.c b/tests/ahci-test.c
index cf0b98b962..169e83b6ba 100644
--- a/tests/ahci-test.c
+++ b/tests/ahci-test.c
@@ -583,7 +583,7 @@ static void ahci_test_port_spec(AHCIQState *ahci, uint8_t port)
ASSERT_BIT_CLEAR(reg, AHCI_PX_CMD_MPSP);
}
/* If, via CPD or MPSP we detect a drive, HPCP must be on. */
- if (BITANY(reg, AHCI_PX_CMD_CPD || AHCI_PX_CMD_MPSP)) {
+ if (BITANY(reg, AHCI_PX_CMD_CPD | AHCI_PX_CMD_MPSP)) {
ASSERT_BIT_SET(reg, AHCI_PX_CMD_HPCP);
}
/* HPCP and ESP cannot both be active. */