mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
636a30a890
commit
7e7d49d68b
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue