dri/common: Fix codestyle of driParseDebugString().
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 3 Sep 2015 11:50:12 +0000 (14:50 +0300)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 4 Sep 2015 10:49:36 +0000 (12:49 +0200)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/common/utils.c

index 43d90d9..1e3b15b 100644 (file)
 
 
 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++;
       }
    }