提交 0d8f4524 编写于 作者: M Martin Kletzander

nodedev: Indent PCI express for future fix

Best viewed with '-w' as this is just an adjustment for future patch to
be readable without that.
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 5bcd96f5
......@@ -505,7 +505,8 @@ static int udevProcessPCI(struct udev_device *device,
goto out;
/* We need to be root to read PCI device configs */
if (priv->privileged && virPCIDeviceIsPCIExpress(pciDev) > 0) {
if (priv->privileged) {
if (virPCIDeviceIsPCIExpress(pciDev) > 0) {
if (VIR_ALLOC(pci_express) < 0)
goto out;
......@@ -528,6 +529,7 @@ static int udevProcessPCI(struct udev_device *device,
data->pci_dev.pci_express = pci_express;
pci_express = NULL;
}
}
ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册