Mesa (master): glsl: Remove extraneously extraneous parens

Chad Versace chadversary at kemper.freedesktop.org
Thu Jan 27 01:49:39 UTC 2011


Module: Mesa
Branch: master
Commit: cc4a787044ac2b1616a982f6efde4a0cb7542304
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc4a787044ac2b1616a982f6efde4a0cb7542304

Author: Chad Versace <chad.versace at intel.com>
Date:   Thu Jan 27 01:40:51 2011 -0800

glsl: Remove extraneously extraneous parens

I found this parenthetical usage of parentheses to be extraneously
extraneous:
   (yyextra->ARB_fragment_coord_conventions_enable)

---

 src/glsl/glsl_lexer.lpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/glsl_lexer.lpp b/src/glsl/glsl_lexer.lpp
index 555bc1f..4d68663 100644
--- a/src/glsl/glsl_lexer.lpp
+++ b/src/glsl/glsl_lexer.lpp
@@ -254,7 +254,7 @@ layout		{
 		  if ((yyextra->language_version >= 140)
 		      || yyextra->AMD_conservative_depth_enable
 		      || yyextra->ARB_explicit_attrib_location_enable
-		      || (yyextra->ARB_fragment_coord_conventions_enable)){
+		      || yyextra->ARB_fragment_coord_conventions_enable) {
 		      return LAYOUT_TOK;
 		   } else {
 		      yylval->identifier = strdup(yytext);




More information about the mesa-commit mailing list