summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 6bf354fa31b..73260123d0b 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -237,13 +237,12 @@ do { \
} \
} while (0)
-/* Returns -errno to shared code */
#define DRM_WAIT_ON( ret, queue, timeout, condition ) \
DRM_SPINLOCK(&dev->irq_lock); \
while ( ret == 0 ) { \
if (condition) \
break; \
- ret = -msleep(&(queue), &dev->irq_lock, \
+ ret = msleep(&(queue), &dev->irq_lock, \
PZERO | PCATCH, "drmwtq", (timeout)); \
} \
DRM_SPINUNLOCK(&dev->irq_lock)