virtio_pci.cpp: check for (un)supported hardware never fit
CID #1032255
This commit is contained in:
@@ -583,9 +583,8 @@ supports_device(device_node* parent)
|
|||||||
|
|
||||||
if (vendorID == VIRTIO_PCI_VENDORID) {
|
if (vendorID == VIRTIO_PCI_VENDORID) {
|
||||||
if (deviceID < VIRTIO_PCI_DEVICEID_MIN
|
if (deviceID < VIRTIO_PCI_DEVICEID_MIN
|
||||||
&& deviceID > VIRTIO_PCI_DEVICEID_MAX) {
|
|| deviceID > VIRTIO_PCI_DEVICEID_MAX)
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
|
||||||
|
|
||||||
pci_device_module_info* pci;
|
pci_device_module_info* pci;
|
||||||
pci_device* device;
|
pci_device* device;
|
||||||
|
|||||||
Reference in New Issue
Block a user