Fix error condition...

main
Keith Whitwell 2002-10-08 08:32:06 +00:00
parent a653224403
commit aa1ca406d6
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ int DRM(irq_busid)(struct inode *inode, struct file *filp,
p.irq = 0; p.irq = 0;
goto out; goto out;
} }
if (!pci_enable_device(dev)) { if (pci_enable_device(dev) != 0) {
DRM_ERROR("pci_enable_device failed for %d:%d:%d\n", DRM_ERROR("pci_enable_device failed for %d:%d:%d\n",
p.busnum, p.devnum, p.funcnum); p.busnum, p.devnum, p.funcnum);
p.irq = 0; p.irq = 0;

View File

@ -48,7 +48,7 @@ int DRM(irq_busid)(struct inode *inode, struct file *filp,
p.irq = 0; p.irq = 0;
goto out; goto out;
} }
if (!pci_enable_device(dev)) { if (pci_enable_device(dev) != 0) {
DRM_ERROR("pci_enable_device failed for %d:%d:%d\n", DRM_ERROR("pci_enable_device failed for %d:%d:%d\n",
p.busnum, p.devnum, p.funcnum); p.busnum, p.devnum, p.funcnum);
p.irq = 0; p.irq = 0;