diff options
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 14 |
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++; } } |