libdrm: oops fix get cap return value.
authorDave Airlie <airlied@redhat.com>
Fri, 4 Mar 2011 05:48:31 +0000 (15:48 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 4 Mar 2011 05:48:31 +0000 (15:48 +1000)
xf86drm.c

index bc7a97fe4cb223e400b0fd0e24088b88aba5f176..a183eee9dd065299bd4efadf78a56616ef478ce7 100644 (file)
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -820,7 +820,7 @@ int drmGetCap(int fd, uint64_t capability, uint64_t *value)
                return ret;
 
        *value = cap.value;
-       return cap.value;
+       return 0;
 }
 
 /**