dri/common: Fix codestyle of driParseDebugString().

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Francisco Jerez 2015-09-03 14:50:12 +03:00 committed by Iago Toral Quiroga
parent 08e9049e3d
commit 3d4f75506c

View file

@ -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++;
}
}