mesa: Remove _mesa_max_buffer_index
[mesa.git] / src / glx / glxconfig.c
index c3e1d5a568044067816f2d662ec74ac8951f20c8..e5718b143fcacba40efae58d53b72ae709ac6b8c 100644 (file)
@@ -230,7 +230,7 @@ glx_config_create_list(unsigned count)
 
    next = &base;
    for (i = 0; i < count; i++) {
-      *next = (struct glx_config *) malloc(size);
+      *next = malloc(size);
       if (*next == NULL) {
         glx_config_destroy_list(base);
         base = NULL;