summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2017-05-23 16:07:10 -0700
committerChad Versace <[email protected]>2017-05-30 12:01:37 -0700
commite8a0a5d7f90fc9e21fd6f47fbb3d12765d5bb8fd (patch)
treeda700ea025b218f3fc10a03b1158b480311bd6c6
parent85dd3e4de11992162da48bb6b090a78baa578300 (diff)
i965/dri: Combine declaration and assignment in intelCreateBuffer
Trivial cleanup. Reviewed-by: Tapani Pälli <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 5de6f18b84f..24123e79869 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -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;