r600g: remove a no-op while loop
authorMarek Olšák <marek.olsak@amd.com>
Tue, 21 Jan 2014 22:46:44 +0000 (23:46 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 28 Jan 2014 00:39:08 +0000 (01:39 +0100)
for (;;) {

} while ();

I was surprised to see such a statement.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/r600_query.c

index bf73a1464b06bc7163e2c84f89125c15f817d2fe..915d37ade9ef44fd90b0c6e5b9b15a55862f5f7c 100644 (file)
@@ -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);
+               }
        }
 }