Fix error condition...
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 8 Oct 2002 08:32:06 +0000 (08:32 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 8 Oct 2002 08:32:06 +0000 (08:32 +0000)
linux-core/drm_ioctl.c
linux/drm_ioctl.h

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