i965/dri: Combine declaration and assignment in intelCreateBuffer
authorChad Versace <chadversary@chromium.org>
Tue, 23 May 2017 23:07:10 +0000 (16:07 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 30 May 2017 19:01:37 +0000 (12:01 -0700)
Trivial cleanup.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c

index 5de6f18..24123e7 100644 (file)
@@ -1169,12 +1169,11 @@ intelCreateBuffer(__DRIscreen *dri_screen,
    mesa_format rgbFormat;
    unsigned num_samples =
       intel_quantize_num_samples(screen, mesaVis->samples);
-   struct gl_framebuffer *fb;
 
    if (isPixmap)
       return false;
 
-   fb = CALLOC_STRUCT(gl_framebuffer);
+   struct gl_framebuffer *fb = CALLOC_STRUCT(gl_framebuffer);
    if (!fb)
       return false;