qtest/ahci: Fix a bit mask expression
authorJohn Snow <jsnow@redhat.com>
Tue, 17 Mar 2015 20:58:19 +0000 (16:58 -0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 19 Mar 2015 08:27:43 +0000 (11:27 +0300)
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>
tests/ahci-test.c

index cf0b98b962ed19afa07e845ee8b2c674c8a9b38a..169e83b6ba95c06198da155c1f3b73d6f10d43f1 100644 (file)
@@ -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. */