[Mesa-dev] [PATCH 04/22] r600g: remove a no-op while loop

Marek Olšák maraeo at gmail.com
Wed Jan 22 12:12:56 PST 2014


From: Marek Olšák <marek.olsak at amd.com>

for (;;) {

} while ();

I was surprised to see such a statement.
---
 src/gallium/drivers/radeon/r600_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/r600_query.c b/src/gallium/drivers/radeon/r600_query.c
index bf73a14..915d37a 100644
--- a/src/gallium/drivers/radeon/r600_query.c
+++ b/src/gallium/drivers/radeon/r600_query.c
@@ -326,7 +326,7 @@ static void r600_emit_query_predication(struct r600_common_context *ctx, struct
 				/* set CONTINUE bit for all packets except the first */
 				op |= PREDICATION_CONTINUE;
 			}
-		} while (qbuf);
+		}
 	}
 }
 
-- 
1.8.3.2



More information about the mesa-dev mailing list