Reported by gcc.

Signed-off-by: Dave Airlie <[email protected]>
Cc: Ian Romanick <[email protected]>
---
 glx/glxdri2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index ddbcf69..b8261d4 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -518,7 +518,7 @@ create_driver_context(__GLXDRIcontext * context,
                                           &major_ver, &minor_ver,
                                           &flags, &api, &reset,
                                           (unsigned *) error))
-                return NULL;
+                return;
 
             ctx_attribs[num_ctx_attribs++] = __DRI_CTX_ATTRIB_MAJOR_VERSION;
             ctx_attribs[num_ctx_attribs++] = major_ver;
-- 
1.7.10.4

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to