Style fix, no functional change intended

This commit is contained in:
Philippe Saint-Pierre 2013-07-17 12:44:11 -04:00
parent fa49409097
commit f293052d9f
1 changed files with 4 additions and 2 deletions

View File

@ -575,16 +575,18 @@ supports_device(device_node* parent)
|| gDeviceManager->get_attr_uint16(parent, B_DEVICE_VENDOR_ID,
&vendorID, false) < B_OK
|| gDeviceManager->get_attr_uint16(parent, B_DEVICE_ID, &deviceID,
false) < B_OK)
false) < B_OK) {
return -1;
}
if (strcmp(bus, "pci") != 0)
return 0.0f;
if (vendorID == VIRTIO_PCI_VENDORID) {
if (deviceID < VIRTIO_PCI_DEVICEID_MIN
|| deviceID > VIRTIO_PCI_DEVICEID_MAX)
|| deviceID > VIRTIO_PCI_DEVICEID_MAX) {
return 0.0f;
}
pci_device_module_info* pci;
pci_device* device;