Skip to content

Commit

Permalink
perf tools: Convert needless static variable to local
Browse files Browse the repository at this point in the history
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-k85ajz97xbrd8fkt2a8pp7q1@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Arnaldo Carvalho de Melo committed Apr 1, 2013
1 parent 1c6763c commit b5ded71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/perf/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b5ded71

Please sign in to comment.