27 lines
818 B
Diff
27 lines
818 B
Diff
From: Markus Trippelsdorf <markus@trippelsdorf.de>
|
|
Subject: Remove wrong semicolon in while loop
|
|
Date: Mon, 14 Dec 2015 16:43:35 +0100
|
|
Origin: http://article.gmane.org/gmane.linux.kernel/2108037
|
|
|
|
The while loop was spinning. Fix by removing a semicolon.
|
|
|
|
The issue was pointed out by gcc-6's -Wmisleading-indentation.
|
|
|
|
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
|
|
Acked-by: Ingo Molnar <mingo@kernel.org>
|
|
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
|
|
---
|
|
diff --git a/tools/perf/arch/x86/tests/intel-cqm.c b/tools/perf/arch/x86/tests/intel-cqm.c
|
|
index d28c1b6a3b54..fa5d17af88b7 100644
|
|
--- a/tools/perf/arch/x86/tests/intel-cqm.c
|
|
+++ b/tools/perf/arch/x86/tests/intel-cqm.c
|
|
@@ -17,7 +17,7 @@ static pid_t spawn(void)
|
|
if (pid)
|
|
return pid;
|
|
|
|
- while(1);
|
|
+ while(1)
|
|
sleep(5);
|
|
return 0;
|
|
}
|