mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 00:27:08 -04:00
Ternary operator has lower priority than OR.
Found by: PVS-Studio
This commit is contained in:
parent
9389e53fd4
commit
ec911df8da
1 changed files with 2 additions and 3 deletions
|
|
@ -162,9 +162,8 @@ ata_serverworks_chipinit(device_t dev)
|
|||
}
|
||||
}
|
||||
else {
|
||||
pci_write_config(dev, 0x5a,
|
||||
(pci_read_config(dev, 0x5a, 1) & ~0x40) |
|
||||
(ctlr->chip->cfg1 == SWKS_100) ? 0x03 : 0x02, 1);
|
||||
pci_write_config(dev, 0x5a, (pci_read_config(dev, 0x5a, 1) & ~0x40) |
|
||||
((ctlr->chip->cfg1 == SWKS_100) ? 0x03 : 0x02), 1);
|
||||
}
|
||||
ctlr->setmode = ata_serverworks_setmode;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue