summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-09-03 14:50:12 +0300
committerIago Toral Quiroga <itoral@igalia.com>2015-09-04 12:49:36 +0200
commit3d4f75506c9233ca4039021024c4b918cc974f86 (patch)
treeb148a8a04b168433b6f23ae95e1561e2634ab4a4 /src/mesa/drivers/dri/common
parent08e9049e3d204265d803aac5ff6bf0b4e5d82d00 (diff)
dri/common: Fix codestyle of driParseDebugString().
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/utils.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
index 43d90d90599..1e3b15b6190 100644
--- a/src/mesa/drivers/dri/common/utils.c
+++ b/src/mesa/drivers/dri/common/utils.c
@@ -43,19 +43,17 @@
uint64_t
-driParseDebugString( const char * debug,
- const struct dri_debug_control * control )
+driParseDebugString(const char *debug,
+ const struct dri_debug_control *control)
{
uint64_t flag = 0;
- if ( debug != NULL ) {
- while( control->string != NULL ) {
- if ( !strcmp( debug, "all" ) ||
- strstr( debug, control->string ) != NULL ) {
+ if (debug != NULL) {
+ for (; control->string != NULL; control++) {
+ if (!strcmp(debug, "all") ||
+ strstr(debug, control->string) != NULL) {
flag |= control->flag;
}
-
- control++;
}
}