sis/sis966: fix typo
temp8 & (!0x10) == temp8 & 0 == 0, which is certainly not intended. Change-Id: Ie9f735d31eedbec171f82929a147fc1b2e30b45a Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Found-by: Coverity Scan #1229587 Reviewed-on: https://review.coreboot.org/15961 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
21ce6efe28
commit
c091604363
|
@ -578,7 +578,7 @@ static void sis_init_stage1(void)
|
||||||
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_SIS, PCI_DEVICE_ID_SIS_SIS761), 0); //Disable Internal GUI enable bit
|
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_SIS, PCI_DEVICE_ID_SIS_SIS761), 0); //Disable Internal GUI enable bit
|
||||||
temp8 = pci_read_config8(dev, 0x4C);
|
temp8 = pci_read_config8(dev, 0x4C);
|
||||||
GUI_En = temp8 & 0x10;
|
GUI_En = temp8 & 0x10;
|
||||||
pci_write_config8(dev, 0x4C, temp8 & (!0x10));
|
pci_write_config8(dev, 0x4C, temp8 & (~0x10));
|
||||||
|
|
||||||
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_SIS, PCI_DEVICE_ID_SIS_SIS761_PCIE), 0);
|
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_SIS, PCI_DEVICE_ID_SIS_SIS761_PCIE), 0);
|
||||||
i=0;
|
i=0;
|
||||||
|
|
Loading…
Reference in New Issue