Index: uspace/app/perf/perf.c
===================================================================
--- uspace/app/perf/perf.c	(revision 980611d5ebb91a5ee7150f0b863cebed3d2a1076)
+++ uspace/app/perf/perf.c	(revision 7e85d2be0102c8f5b4a85409e870435ac1c03f11)
@@ -180,6 +180,6 @@
 static int run_benchmarks(void)
 {
-	unsigned int i = 0;
-	unsigned int n = 0;
+	unsigned int count_ok = 0;
+	unsigned int count_fail = 0;
 
 	char *failed_names = NULL;
@@ -190,5 +190,5 @@
 		printf("%s (%s)\n", benchmarks[it]->name, benchmarks[it]->desc);
 		if (run_benchmark(benchmarks[it])) {
-			i++;
+			count_ok++;
 			continue;
 		}
@@ -206,12 +206,13 @@
 			failed_names = f;
 		}
-		n++;
-	}
-
-	printf("\nCompleted, %u benchmarks run, %u succeeded.\n", i + n, i);
+		count_fail++;
+	}
+
+	printf("\nCompleted, %u benchmarks run, %u succeeded.\n",
+	    count_ok + count_fail, count_ok);
 	if (failed_names)
 		printf("Failed benchmarks: %s\n", failed_names);
 
-	return n;
+	return count_fail;
 }
 
