[Mesa-dev] [PATCH 1/5] meta: Initialize the variable in declaration statement

Anuj Phogat anuj.phogat at gmail.com
Wed Jul 30 19:11:23 PDT 2014


Saves one line of code :)

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
Realized today that I never really sent this series out to the list.

 src/mesa/drivers/common/meta.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index f1f5729..28bd065 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -2721,9 +2721,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);
+   GLenum baseFormat = _mesa_get_format_base_format(format);
 
    switch (baseFormat) {
    case GL_RGBA:
-- 
1.9.3



More information about the mesa-dev mailing list