From: Keith Whitwell Date: Tue, 8 Oct 2002 08:32:06 +0000 (+0000) Subject: Fix error condition... X-Git-Tag: submit/1.0/20121108.012404~2465 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa1ca406d637a1eabbff272c0508bed5eb1147a1;p=profile%2Fivi%2Flibdrm.git Fix error condition... --- diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c index 945340c..01604e7 100644 --- a/linux-core/drm_ioctl.c +++ b/linux-core/drm_ioctl.c @@ -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; diff --git a/linux/drm_ioctl.h b/linux/drm_ioctl.h index 945340c..01604e7 100644 --- a/linux/drm_ioctl.h +++ b/linux/drm_ioctl.h @@ -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;