From 80c9e2d60d9935ec71deb4cdadcd95ed1eab7bd5 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Tue, 7 Oct 2008 22:25:13 +0000 Subject: 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. --- sys/dev/pci/drm/mach64_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/pci/drm/mach64_irq.c') 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); -- cgit v1.2.3