mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
virDomainDeviceIsUSB: Drop check for USB controller
Delete the USB controller check from the USB Device checklist in virDomainDeviceIsUSB as USB controller is a PCI device rather than a USB one. Signed-off-by: Liu Ji <jeremy.liu@huawei.com>
This commit is contained in:
parent
66ec11ade4
commit
ce78098e88
@ -16996,8 +16996,6 @@ virDomainDeviceIsUSB(virDomainDeviceDefPtr dev)
|
||||
int t = dev->type;
|
||||
if ((t == VIR_DOMAIN_DEVICE_DISK &&
|
||||
dev->data.disk->bus == VIR_DOMAIN_DISK_BUS_USB) ||
|
||||
(t == VIR_DOMAIN_DEVICE_CONTROLLER &&
|
||||
dev->data.controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB) ||
|
||||
(t == VIR_DOMAIN_DEVICE_INPUT &&
|
||||
dev->data.input->type == VIR_DOMAIN_INPUT_BUS_USB) ||
|
||||
(t == VIR_DOMAIN_DEVICE_HOSTDEV &&
|
||||
|
Loading…
Reference in New Issue
Block a user