}
static int
-virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal)
+virPCIDeviceConfigOpen(virPCIDevicePtr dev)
{
- return virPCIDeviceConfigOpenInternal(dev, false, fatal);
+ return virPCIDeviceConfigOpenInternal(dev, true, true);
}
static int
int ret = 0;
uint16_t device_class;
- if ((fd = virPCIDeviceConfigOpen(dev, true)) < 0)
+ if ((fd = virPCIDeviceConfigOpen(dev)) < 0)
return -1;
if (virPCIDeviceInit(dev, fd) < 0) {
int fd;
int ret = -1;
- if ((fd = virPCIDeviceConfigOpen(dev, true)) < 0)
+ if ((fd = virPCIDeviceConfigOpen(dev)) < 0)
return ret;
if (virPCIDeviceInit(dev, fd) < 0)
int ret = -1;
uint16_t cap, type;
- if ((fd = virPCIDeviceConfigOpen(dev, true)) < 0)
+ if ((fd = virPCIDeviceConfigOpen(dev)) < 0)
return ret;
if (virPCIDeviceInit(dev, fd) < 0)
int fd;
int ret = -1;
- if ((fd = virPCIDeviceConfigOpen(dev, true)) < 0)
+ if ((fd = virPCIDeviceConfigOpen(dev)) < 0)
return ret;
if (virPCIDeviceInit(dev, fd) < 0)
*hdrType = -1;
- if ((fd = virPCIDeviceConfigOpen(dev, true)) < 0)
+ if ((fd = virPCIDeviceConfigOpen(dev)) < 0)
return -1;
type = virPCIDeviceRead8(dev, fd, PCI_HEADER_TYPE);