From: Anuj Phogat Date: Thu, 12 Jun 2014 00:57:30 +0000 (-0700) Subject: meta: Initialize the variable in declaration statement X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9796a1726545eebb6cf387945cd076bb49de2598;p=mesa.git meta: Initialize the variable in declaration statement Saves one line of code :) Signed-off-by: Anuj Phogat Reviewed-by: Topi Pohjolainen --- diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 606b604bcfb..a2a7b2d48ff 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -2732,9 +2732,7 @@ _mesa_meta_blit_shader_table_cleanup(struct blit_shader_table *table) static GLenum get_temp_image_type(struct gl_context *ctx, mesa_format format) { - GLenum baseFormat; - - baseFormat = _mesa_get_format_base_format(format); + const GLenum baseFormat = _mesa_get_format_base_format(format); switch (baseFormat) { case GL_RGBA: