diff --git a/kernel/driver/pci/pci.c b/kernel/driver/pci/pci.c index e2ca3644..a1538493 100644 --- a/kernel/driver/pci/pci.c +++ b/kernel/driver/pci/pci.c @@ -525,12 +525,11 @@ int32_t pci_enumerate_capability_list(struct pci_device_structure_header_t *pci_ while (1) { tmp = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, cap_offset); - kdebug("tmp & 0xff=%#010lx",tmp & 0xff); if ((tmp & 0xff) != cap_type) { - if ((tmp & 0xff00) >> 8) + if (((tmp & 0xff00) >> 8)) { - cap_offset = (tmp & 0xff00); + cap_offset = (tmp & 0xff00)>>8; continue; } else