Commit-ID:  b5ded713974f537a950e841b5c583f49c80266ff
Gitweb:     http://git.kernel.org/tip/b5ded713974f537a950e841b5c583f49c80266ff
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Wed, 27 Mar 2013 11:00:07 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 1 Apr 2013 12:22:48 -0300

perf tools: Convert needless static variable to local

Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
---
 tools/perf/perf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/perf/perf.c b/tools/perf/perf.c
index 31c9380..85e1aed 100644
--- a/tools/perf/perf.c
+++ b/tools/perf/perf.c
@@ -518,9 +518,8 @@ int main(int argc, const char **argv)
 
        while (1) {
                static int done_help;
-               static int was_alias;
+               int was_alias = run_argv(&argc, &argv);
 
-               was_alias = run_argv(&argc, &argv);
                if (errno != ENOENT)
                        break;
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to