diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-10-07 22:25:13 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-10-07 22:25:13 +0000 |
commit | 80c9e2d60d9935ec71deb4cdadcd95ed1eab7bd5 (patch) | |
tree | 427cd8c404be603a4becfdf03099d5d11bcbf8c1 /sys/dev/pci/drm/mach64_irq.c | |
parent | fe8d8e4b6ee985aaaffe6e1231eae6166fa58582 (diff) |
Kill the linux-ready negative return codes in ``shared'' code. We handle
them wrong in several cases that i've noticed and Merging when needed is
still fairly simple, anyway. This shaves another 500 bytes from an amd64
kernel due to not having to flip the sign on some things. It also stops
my eyes bleeding.
Tested by a few along with the last diff that went in.
Diffstat (limited to 'sys/dev/pci/drm/mach64_irq.c')
-rw-r--r-- | sys/dev/pci/drm/mach64_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/mach64_irq.c b/sys/dev/pci/drm/mach64_irq.c index 57879e8d74c..0b350b2ffe2 100644 --- a/sys/dev/pci/drm/mach64_irq.c +++ b/sys/dev/pci/drm/mach64_irq.c @@ -86,7 +86,7 @@ int mach64_enable_vblank(struct drm_device * dev, int crtc) if (crtc != 0) { DRM_ERROR("tried to enable vblank on non-existent crtc %d\n", crtc); - return -EINVAL; + return EINVAL; } DRM_DEBUG("before enable vblank CRTC_INT_CTNL: 0x%08x\n", status); |