From 3d4f75506c9233ca4039021024c4b918cc974f86 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 3 Sep 2015 14:50:12 +0300 Subject: [PATCH] dri/common: Fix codestyle of driParseDebugString(). Reviewed-by: Iago Toral Quiroga --- src/mesa/drivers/dri/common/utils.c | 14 ++++++-------- 1 file 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++; } } -- 2.30.2